Skip to main content

compile_and_test

Function compile_and_test 

Source
fn compile_and_test<FEN: FoundryEvmNetwork>(
    config: &Arc<Config>,
    evm: &MutationEvmConfig<FEN>,
    filter_args: &FilterArgs,
    rerun_failures: Option<&[RerunFailure]>,
    selected_sources_relative: &[PathBuf],
    isolate: bool,
    deadline: Option<Instant>,
) -> Result<bool>
Expand description

Compiles and tests a mutant using the campaign’s already selected EVM and remote backend.

If deadline is set, the test run stops at the deadline like an interrupted forge test. This keeps fuzz and invariant run limits unchanged, because their timeout settings would turn a run-limited campaign into a time-based one.