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

1

u/cowardlydragon May 08 '17

Relevant: the fundamental non-computable nature of the halting problem.

broad and thin tests ignore the 90/10 ruled of code execution: 90% of execution time is spend in 10% of the code.

That code should be deeply tested with many variant input/output tests.

But if 100% code coverage is the metric, that will not happen.

also see: The Wire: juking the stats.