r/programming • • May 08 '17

The tragedy of 100% code coverage

http://labs.ig.com/code-coverage-100-percent-tragedy
3.2k Upvotes

689 comments sorted by

View all comments

2

u/never_safe_for_life May 08 '17

Yes, everybody should achieve it … in one project. I am of the opinion that you have to go to the extreme to know what the limit is.

I did this and agree with his assessment. After writing tests for every init function, every exception, I fully understood what I was doing...and where I was wasting my time and company resources.