mutation-check
Installation
SKILL.md
Mutation Check
Read docs/testing.md first.
- Inspect the diff before running. New functions in logic modules that shell
out, drive
&PlatformBackend, read a TTY, or write stdout must be excluded in.cargo/mutants.tomlin the same PR. Extract and test their pure decision logic. Pure helpers remain in scope. - Sanity-check changed exclusions with
cargo mutants --list -f <file>. - Run a full-file sweep for each touched scoped module and library tests only:
cargo mutants -f src/<file>.rs -- --lib. Redirect output to a file; do not pipe a long run throughheadorgrep. - Triage
mutants.out/missed.txt: add a discriminating test for real gaps, mark genuinely equivalent mutants with a narrow documented skip, and delete dead code. Confirm each new test by re-running the mutant or deliberately breaking the protected behavior. - Report files swept, missed count before/after, every survivor's disposition,
and whether
.cargo/mutants.tomlchanged.