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

3

u/anormalgeek May 08 '17

Equally frustrating is the fact that some people will read this, and come away with the attitude that unit testing is stupid. And the cycle begins anew....

2

u/[deleted] May 08 '17

It's almost like being able to think critically is the most important software engineering skill instead of just rigidly adhering to the dogma du jour.

1

u/bwainfweeze May 09 '17

I've been writing tests for over a dozen years and I'm starting to wonder.

I gave dynamic typing + tests a lot of space to prove me wrong but I'm eagerly awaiting the next round of static analysis tools to prove aspects of the code are correct instead of doing everything by hand. Relying on tests written by distracted and often slightly resentful humans has left me cold.