Report example / Calculator
Two changes.
No test caught them.
The tests caught four changes and missed two. Each diff below shows a missed change. Review it for a missing test or behaviour that stays the same.
Sample data in the website theme. The CLI’s self-contained HTML report has its own presentation.
66.7% mutation score · 4 / (4 + 2)
6 total
4 killed
2 survived
0 no_coverage
0 uncapturable
0 unplaceable
0 ran_at_load
0 ignored
0 skipped
0 errored
0 timeout
Results by file
| File | Score | Killed | Survived | No coverage |
|---|---|---|---|---|
| test/fixtures/calculator.rb | 66.7% | 4 | 2 | 0 |
Surviving Mutants
Calculator#add
--- a/test/fixtures/calculator.rb +++ b/test/fixtures/calculator.rb @@ -5 +5 @@ - a + b + a - b
Calculator#subtract
--- a/test/fixtures/calculator.rb +++ b/test/fixtures/calculator.rb @@ -9 +9 @@ - a - b + a + b