How much code coverage is needed?

  • 100%! … less is not enough!
  • Often we hear: the last 10% are too costly to be covered
  • Why is it too costly?
    • Because this last 10 % code is not well testable
    • Hence it is not well designed
    • Hence it is error-prone
  • Nobody wants to let the most error-prone code be uncovered by tests, do you?
  • 100 % coverage also means all contracts get checked

[Source]

Advertisements

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