NUNIT and Code Coverage Usage

Two topics I’d been asked to cover were tackled today.

Gunnar explains “How to Shoot Yourself in the Foot With Code Coverage”. Some choice quotes that I have also found to be truisms:

To efficiently use any of this a time needs to be invested in training people, choosing proper metrics, explaining metrics to all team members, and picking key things to measure.

Whenever I read articles when somebody recommends that one should strive for 100% code coverage I want to start screaming.

Based on my experience getting more than 80% of code coverage gets extremely tricky and there’s very little in return for your investments.

Rido found, what he describes as, the best add-in and wrote a macro to go along with it for integrating NUNIT into VS.NET 2003.

Great Posts! Enjoy.