2 ms·
I aim for 85% coverage because everyone I’ve ever seen try to go from 20% coverage to 100% coverage has been caught lying, either to themselves or to me. There
by hinkley 7y ago
I aim for 85% coverage because everyone I’ve ever seen try to go from 20% coverage to 100% coverage has been caught lying, either to themselves or to me.
There are many ways to confuse the coverage metric collection. They have gotten much better but they are not perfect.
Code with zero tests is trivial to discover. The task list practically writes itself. You can grab a random one and just start testing it. But once code looks as if it has tests, the cost of discovering that it doesn’t is high, either in hours expended, or public discovery by customers.
I’d much, much rather have an honest 82% than a bullshit 99.
And the thing is, you are going to be better at writing tests later than you are now. Why rush to produce all the tests while you are still comparatively lousy at it?