% It ran, but what did it do? How do you know? 2. Got to make the tests pass! Each test that fails is one less bug raised at 5: 28 on Friday afternoon. Tests that can't fail are a waste of your time.
Nor about simulating malicious inputs, security, etc. • If bugs are crimes... • And your tests are the Police... • Mutants are fake crimes that let you see if the Police are doing their job.
how to, this is the fundamental problem. Come back when you: • Understand the system you're testing better • Fix your test data / test envt to give yourself more control (If the developer wrote untestable code, there's only so much you can do...)
bugs will be fixed. Question is: where, when, and on whose terms? Unit- and mutation-test when it makes sense, when it helps you, not to hit arbitrary targets.
implementation. > mvn org.pitest:pitest-maven:mutationCoverage Generates colourful reports by class/package. Has a Sonar plugin for "survived mutant" violations.