Mutations are small "faults" or "bugs" inserted into your code.
When a mutation is applied to the code, a mutant is created.
Mutation testing:
1. Change your code in small ways
2. Run the test suite once for each changed version
3. Analyze results
- If one or more test breaks, it’s said that the mutant was killed
- If all tests passes, it’s said that the mutant survived
MUTATIONS, MUTANTS & MUTATION TESTING
9