Surviving mutants

You will learn

What a surviving mutant tells you about the test that let it live.

A surviving mutant is the most specific bug report you will ever get: here is a fault, here is the test that should have caught it, here is why it did not. The widget counted them where nobody was looking: 367 PRs landed on t27 in 14 days, and 11 of them deleted tests or asserts; one PR, titled to sound like an implementation, deleted all 26 tests in its file and nothing failed. Every one of those 11 was a mutant that survived -- and it survived because a human let it, which is exactly the failure mode mutation testing exists to catch.

Open the interactive lesson →