r/ProgrammerHumor • • Oct 17 '26

Meme howWouldTheyKnow

Post image
1.8k Upvotes

52 comments sorted by

View all comments

Show parent comment

3

u/gronbuske Oct 17 '26

Test coverage is a useless metric. Just checking that all lines of code are run in a test does not guarantee quality. I frequently trash tests that just test that the code is written as it is written or give a false sense of security. A bad test is sometimes worse than no test.