News for hackers. Stuff that matters.
Re:Mutation Driven Testing: When TDD Just Isn’t Good Enough by typhonius on Saturday February 06, 2021 @01:28AM (#26044601)
I’ve used the infection PHP library (https://github.com/infection/infection) in an API SDK that I maintain.

My experiences were very similar to the author’s when I first started using it. Even though my test coverage was near 100%, the mutations introduced revealed that in large part my tests were fallible due to assumptions I’d made when writing them.

I’ve incorporated mutation testing as the final step in my CI workflow as a test for my tests. It’s a fair bit of work the first time it’s run (especially with larger libraries), but in my opinion vital as a pairing with tests.

There are no comments on this comment yet.