3 ms·
I also disagree. I don't know about everyone, but on my projects (ones I've built by myself, so nothing huge) I can always give a probability of a bug existing
by StavrosK 16y ago
I also disagree. I don't know about everyone, but on my projects (ones I've built by myself, so nothing huge) I can always give a probability of a bug existing in a part of the code. I've frequently written a feature and thought "yeah, this is going to break" only to find that it does in testing.
When I write tests, I don't care (too much) about coverage as about writing good tests. If I'm confident that I've gotten most cases, new features are much easier to add, even if the coverage isn't that great.
Covering a part of the code you know is unlikely to fail isn't a very good use of anyone's time, I think.