DEV Community

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

Collapse
 
ogdenstudios profile image
Tyler Scott Williams

Love it. I almost wonder if there's value in saying "aim to cover the most difficult 20% of your codebase, and the rest is icing on the cake".

If you assume that 20% of what you've got is difficult to test, but critical to function. Cover that first. The rest should fall into place nicely with easy-to-reason-about test cases.

10/10, thanks for this perspective.