Comment

Comment by BobbyTables2

Unfortunately high code coverage is misaligned with high quality code.

If one copy-pastes a routine to make a modified version (that’s used), code coverage goes UP. Sounds like a win win for many…

Later, someone consolidates the two near identical routines during a proper refactoring. They can even add unit tests. Guess what? Code coverage goes DOWN!

Sure, having untested un-executed code is a truly horrible thing. But focusing on coverage can be worse…

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton