Beware Mutants: Testing Your Tests - php[tek] 2016
By Ian Littman
Beware Mutants: Testing Your Tests - php[tek] 2016
When building a test suite, it is easy to forget that tests are code. Therefore, tests can have bugs and uncaught edge cases, just like normal code...even with 100% line code coverage. The solution: a test to test your tests, warping your code to try to make your tests fail. I will guide you through the ideas behind this so-called mutation testing, including tools to perform the tests and enhancements to testing tools to catch when "100%" code coverage does not cut it.