Expand description
Targeted mutation testing: find the wrong implementations your tests would let through.
Modules§
- baseline
- Findings the user has already looked at:
// tmt:ignorecomments and baseline files. - config
- Project and workspace configuration file (
tmt.toml) discovery, parsing, validation, and layered merging with CLI overrides. - driver
- Runs the whole pipeline on a cargo package: copy -> instrument -> build once -> trace run -> plan -> run the infected mutants.
- instrument
- Finds mutation sites in Rust source and rewrites them into probes.
- interrupt
- Cooperative SIGINT/SIGTERM handling so active test workers are stopped and reaped
before
cargo tmtexits. - output_
fixture - Runtime assets declared relative to the workspace and isolated Cargo output.
- plan
- The planner: decides, from what the tests observed at a comparison, which mutations are guaranteed to survive (input gaps) and which ones the tests must be run against.
- propagation
- What a surviving mutant changes further down: the difference between the trace of the original and the trace of the same tests with the mutant switched on.
- report
- Turns planner results into findings a person can act on: which wrong implementation survives, and which input or assertion would catch it.
- scope
- Which lines of which files to analyse (
--since,--lines). - trace
- Reads the trace written by the injected runtime (
src/runtime/tmt_rt.rs).
Constants§
- RUNTIME_
SOURCE - Source of the injected runtime module.