Adam Heath wrote:
I'd like to see others go thru and start *really* adding test cases.
Every single time I have added full coverage on some class, I have
*always* found something wrong. Sometimes, it was just a simple
dead-code elimination. Others, like this latest push, had many more
issues.
If there is no coverage on a class/method/line, then it is *not* being
tested. So how can you be sure that the change you are thinking of
doing has any chance of working? Even with full coverage, all you can
be certain is that your new code runs, and doesn't break any known
test cases. It's still possible other things might break, but it's at
least better than nothing.
Thank you for all of the helpful information and advice. Personally, I'm
trying to do a better job of testing code - so your recent work really
helps me get a good feel for what is needed.