DEV Community

Discussion on: The Myth of Code Coverage

Collapse
 
aminmansuri profile image
hidden_dude

I think of code coverage like I think of tests:

The fact that I have a ton of tests that pass doesn't mean that I don't have bugs. But if a test doesn't pass, then I know I do have a bug.

Likewise, the fact that I have high coverage doesn't mean I have good tests. But if I have very low coverage, then I know I don't have enough tests.