Mutation Score - CI/CD Glossary Definition
A mutation score is the percentage of injected code mutations (deliberate bugs) that a test suite detects, measuring how good the tests are at catching faults rather than just how much code they execute.
How mutation testing works
A tool like Stryker or PIT flips operators (> to >=), removes statements, and changes constants, then reruns the tests. A "killed" mutant means a test failed and caught it; a "survived" mutant means a gap.
Why it beats coverage
Code coverage shows lines were run; mutation score shows they were actually asserted on. High coverage with a low mutation score reveals tests that execute code but verify nothing.
Related guides
Code Coverage Threshold - CI/CD Glossary DefinitionCode Coverage Threshold: A code coverage threshold is a minimum coverage percentage the test suite must meet,…
Branch Coverage - CI/CD Glossary DefinitionBranch Coverage: Branch coverage measures the percentage of decision branches (each side of every `if`, `swit…
Property-Based Test - CI/CD Glossary DefinitionProperty-Based Test: A property-based test checks that a property holds for many automatically generated inpu…