Skip to main content

run_single_test

Function run_single_test 

Source
async fn run_single_test(
    planned_project: &Project,
    object_id: &ObjectId,
    test: &UnitTest,
    types_cache: &Option<ProjectCache>,
    types_lock: &Types,
    target: TestTarget<'_>,
    empty_types: &Types,
) -> Result<TestOutcome, CliError>
Expand description

Executes one test case through validation, setup SQL, assertion query, and cleanup.

Returns a TestOutcome without performing any terminal output so the caller can own all presentation (printing, JUnit building, counting).