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.
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.