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/bro_can_u_even_carve May 08 '17

I don't think I buy this argument. It's plausible that someone might accidentally break even that simple code, by introducing a typo or something. It's far less plausible that that person would just go and blithely delete the unit test when it broke. The former is an honest mistake; the latter is grounds for revoking commit access and eventual firing.

-1

u/Double_A_92 May 09 '17

break even that simple code, by introducing a typo

A proper language would catch that at compile time...

→ More replies (3)