Skip to main content

changed_test_rerun

Function changed_test_rerun 

Source
fn changed_test_rerun(
    events: &[Event],
    last_test_files: &mut HashSet<String>,
    project_root: &str,
    no_reconfigure: bool,
) -> TestRerun
Expand description

Picks the tests to run for changed files: the one changed test file, or the last test files when only non-test files changed.

A single changed test file becomes the last test files, so later changes to non-test files keep running its tests.

no_reconfigure keeps the command as given, for runs that the user already filtered.