News for hackers. Stuff that matters.
Re:Write tests. Not too many. Mostly integration (2017) by chriswarbo on Friday February 01, 2019 @06:42AM (#19053342)
My problem with "100% coverage" is Goodhart's law ( https://en.wikipedia.org/wiki/Goodhart%27s_law ).

Keep adding tests as long as they tell us something new, give us more confidence, document some regression, etc.

Keep adding tests if they're exposing edge cases (e.g. MAX_INT), even if those code paths are already covered.

Keep adding tests if they're asserting useful things about the results, even if those code paths are already covered.

Stop adding tests when you're only trying to make the coverage number increase.

There are no comments on this comment yet.