Skip to main content

Mutation testing

Engineering practice

Intentionally inserting small code mutations to see if tests catch them—measures test suite strength, not product correctness alone.

If mutants survive, your tests may be shallow. Mutation testing is expensive but insightful for critical modules.

With AI-generated tests

AI can draft tests; mutation testing helps judge whether those tests actually constrain behavior.