Mutation Testing

Measure whether the tests fail when the code is wrong, not merely whether they run it: run a mutation tool on only the lines a pull request changed, triage every surviving mutant as an equivalent mutant, a missing assertion or an untested branch, kill the worst survivors by writing the test that notices, and ratchet on changed code instead of chasing a global mutation score. Covers diff-scoped runs in Stryker, PIT, mutmut, cargo-mutants and Infection. Use when someone says "coverage is high but bugs still ship", "would our tests even notice if this broke", "what does a surviving mutant mean" or "the mutation run takes all night". Not for choosing which cases to write (test-design), reviewing a diff (code-review), replacing examples with invariants (property-based-testing), or a test that fails only in some orders (test-order-bisect).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 22e8e20c86

Frequently asked questions

npx get-skill add greenblacked/mutation-testing