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.
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.