DEV Community

Discussion on: The Problem With High Test Coverage

Collapse
 
silviumarian profile image
Silviu Marian

Code coverage doesn't seem to help with side fx
You get the side effect executed and covered but doesn't imply the side effect is asserted, sometimes you can't even look for it

But it does help remember why code was written in the first place, and forces you to review your own code

Just aim for 100% responsibilities tested, or 100% features tested, not 100% code covered