Skip to content

Commit d5099dd

Browse files
Update mutation-testing.md
Added section on how to interpret Mutation Testing Results
1 parent 34370c2 commit d5099dd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/core/testing/mutation-testing.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ Stryker supports several types of mutations:
110110

111111
For additional mutation types, see the [Stryker.NET: Mutations](https://stryker-mutator.io/docs/stryker-net/mutations) documentation.
112112

113+
## Interpreting Mutation Testing Results
114+
115+
After running Stryker.NET, you’ll receive a report that categorizes mutants as **killed**, **survived**, or **timeout**. Here's how to interpret and act on these results:
116+
117+
- **Killed Mutants**: These are changes that your tests successfully caught. A high number of killed mutants indicates that your test suite effectively detects logic errors.
118+
119+
- **Survived Mutants**: These changes were not caught by your tests. Review them to identify gaps in test coverage or assertions that are too weak. Focus on adding targeted unit tests that would fail if the mutant were real.
120+
121+
- **Timeout Mutants**: These mutations caused your code to hang or exceed the allowed time. This can happen with infinite loops or unoptimized paths. Investigate the code logic or increase the timeout threshold if needed.
122+
123+
> **Note**: Don't chase a 100% mutation score. Focus instead on high risk or business critical areas where undetected bugs would be most costly.
124+
113125
## Incremental improvement
114126

115127
If, after changing your code, the unit tests pass successfully, then they aren't sufficiently robust, and the mutant survived.

0 commit comments

Comments
 (0)