DEV Community

Discussion on: Do you aim for 80% code coverage? Let me guess which 80% you choose...

Collapse
 
etampro profile image
Edward Tam

I believe in 100% coverage. That doesn't mean that you should write test for every single line of code you write.

Most of the code coverage measurement tools come with features like filter. My 100% may be covering the same thing your 80% does, but the difference is that my 100% includes effort to examine the 20% not covered are truly things that I do not care.