I am ready to write some unit tests. What code coverage should I aim for?

Here's a nice "story" about code coverage from the Google Testing Blog.
Testivus on Test Coverage
Early one morning, a young programmer asked the great master:

“I am ready to write some unit tests. What code coverage should I aim for?”
The great master replied:
“Don’t worry about coverage, just write some good tests.”
The young programmer smiled, bowed, and left.

Read more on the official blog »
Code coverage is an interesting metric which I found particularly useful as an indicator of "trust in your tests". See my according post here.
Kindle

Comments

0

Your ad here?