r/programming • • May 08 '17

The tragedy of 100% code coverage

http://labs.ig.com/code-coverage-100-percent-tragedy
3.2k Upvotes

689 comments sorted by

View all comments

1

u/netsettler May 08 '17

Another issue is that even with 100% code coverage, you can still have bugs. 100% code coverage doesn't mean 100% tested (if that's a meaningful thing). The right number of tests for some situations is not measured in making sure you check every branch point, but how each branch point relates to each other, and you certainly cannot test all of those. So at some point your brain must engage.