Kill All Mutants! (Intro to Mutation Testing)
summary
Mutation testing generates tiny semantic changes in AST copies of functions, runs the function’s tests against each mutant, and marks a mutant killed if any test fails or surviving if all pass; surviving mutants reveal test gaps or redundant/unreachable code. Typical tools support per-file or incremental runs and test annotations, but cost is high — heuristics can produce ~1,000 mutants per function, ~200 test runs on average, turning a 10s suite into ~33+ minutes.
AI-written summary · about
