mutation-testing
Mutation testing
Coverage tells you code was executed. Mutation testing tells you whether the
tests would notice that code being wrong. A tool plants one small bug at a time
(a mutant: >= becomes >, + becomes -, a condition is deleted), reruns
the suite, and records the verdict. A test failure kills the mutant. A suite
that stays green let the bug through — every surviving mutant is a lie the
test suite tells.
Reference files sit beside this file. If you fetched this over HTTP instead of
from disk, fetch tools.md, gotchas.md and judge.md from
https://raw.githubusercontent.com/dmoka/skills/main/skills/mutation-testing/references/.
Fetch raw text, not a summary. Many agents have a fetch tool that runs a
page through a summarizing model. It will paraphrase this file, drop the
numbered steps, and mangle the config snippets you are about to copy. If your
fetch returns prose rather than the literal markdown below, refetch with
curl -sSL <url> and work from that.