Discussion:
Unit Test Coverage Check-In Policy
(too old to reply)
Steve Barker
2009-02-10 12:38:02 UTC
Permalink
Hi guys,

Having done a bit of research, I would say that 80% unit test coverage is
accepted as the industry standard goal. This makes sense, as 100% often isn’t
possible, or takes an age to achieve thanks to the law of diminishing returns.

[I understand that coverage alone isn’t enough, as often code needs to be
tested with multiple conditions, but that’s another issue.]

So, it would be great if it was possible to create a check-in policy that
requires 80% unit test coverage. Does anyone know how to do this?

Thanks in advance!

Steve.
Steve Barker
2009-02-10 13:53:01 UTC
Permalink
Sorry guys. This is a repost! I got an error when I posted first time. I then
posted again and got a second error. I didn't realise the post actually got
through! Please put answers on the other thread with the same name...
Post by Steve Barker
Hi guys,
Having done a bit of research, I would say that 80% unit test coverage is
accepted as the industry standard goal. This makes sense, as 100% often isn’t
possible, or takes an age to achieve thanks to the law of diminishing returns.
[I understand that coverage alone isn’t enough, as often code needs to be
tested with multiple conditions, but that’s another issue.]
So, it would be great if it was possible to create a check-in policy that
requires 80% unit test coverage. Does anyone know how to do this?
Thanks in advance!
Steve.
Loading...