What is mutation testing?
masterMutation testing is a technique used to evaluate the quality of existing software tests and design new ones. It works by making small, programmatic changes to the source code (creating 'mutants').
- Killing a mutant: If your test suite fails due to the mutation, the mutant is considered 'killed'.
- Surviving a mutant: If your tests still pass despite the mutation, the mutant has 'survived', indicating that your test suite is not sufficiently covering that logic.
Beyond finding untested code, mutation testing can also uncover dead code or implementation flaws that existing tests are blind to.