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

FileScoreKilledSurvivedNo coverage
test/fixtures/calculator.rb66.7%420

Surviving Mutants

Calculator#add

test/fixtures/calculator.rb:5 · arithmetic · aa8840680d3e
--- a/test/fixtures/calculator.rb
+++ b/test/fixtures/calculator.rb
@@ -5 +5 @@
-    a + b
+    a - b

Calculator#subtract

test/fixtures/calculator.rb:9 · arithmetic · 6de3fd46a40a
--- a/test/fixtures/calculator.rb
+++ b/test/fixtures/calculator.rb
@@ -9 +9 @@
-    a - b
+    a + b