Strive For Good Unit Testing, Not 100% Coverage

Here is a great article on unit testing coverage written by my fellow Microsoft MVP Jeremy Clark. Microsoft actually told me that a good coverage goal should be 75%.

https://jeremybytes.blogspot.com/2016/08/code-coverage-should-not-be-goal.html

Advertisements

3 thoughts on “Strive For Good Unit Testing, Not 100% Coverage

  1. I don’t recall the exact quote form Martin Fowler, but it was something like: “Imperfect unit tests that are run continuously catch more bugs than perfect unit tests that never get written.” The beauty of unit tests is we can always add more when we find that they missed a case.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s