Killed any mutants lately? 0 ▲ Entropic Thoughts 12 hours ago · Tech · hide These days, nearly everyone has automated tests running in CI. It’s also popular to attempt to measure the effectiveness of the test suite, by seeing how well it covers the code under test. A low number for the measured test coverage means there is business logic that isn’t exercised by tests. When people measure test coverage, they nearly always measure statement coverage or the more exhaustive branch coverage. Would you be surprised if I told you both are wrong? There is only one type of test coverage that tells us about gaps in the test suite, and it’s called mutation coverage. It’s rarely used. To compute the mutation coverage for a test suite, we generate large numbers of copies of the code under test. In each copy, we deliberately inject a small bug in the program logic. Here are examples of bugs we can create: Change an operator for a related one, such as turning a + into a -, or a < into a >. Delete a method call. Change a plain = assignment to an incrementing += assignment,… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town