Coverage delta

Coverage delta

I know it is possible to fail a build if the code coverage drops below a certain point. However, with old code we need to set that level very low and increase it gradually as we build more coverage into the unit tests.

I was wondering if it possible to fail the build if the coverage drops more than a certain percentage. This means I can setup my build to fail if the coverage drops more than say 2% of the last build's coverage. This way I can setup my coverage tests for an old code base and make sure it only goes up and no one can check in code that is not covered.


RE: Coverage delta

That's not a feature that we support at present, but it's a very cool idea, so I'll share it with the team so that we can try and include it in a future release of NCover.

Thanks for the awesome feedback!