Feature Suggestions

'Fail' if minimum coverage not met

Started by maz100 on 6,182 views

I would like to be able to set up a minimum required coverage percentage

If the overall coverage does not meet this requirement the NCrunch tray icon should show red and indicate the percentage covered

This should respect the 'exclude from metrics aggregation' settings.

This would be really useful as I use the tray icon as my primary indicator of whether my changes are good to check in.

Hopefully it wouldn't be a big change as we already have the information displayed in another place.

- failed tests should take precedence over insufficient coverage
- do we need a visual cue as to whether the number represents total failing tests or total coverage? or does clicking the tray icon take you to the tests window/metrics window as appropriate? this would be fine for me...

Thanks!
Thanks for the suggestion! There are a number of people that use NCrunch as a way to try and encourage higher code coverage, so I have a feeling this will be quite a popular feature. I think the success of the feature will be much more down to the mechanics of how it actually works. One way could be to add an extra colour (purple?) to the tray icon, which would appear if the overall code coverage % fell below a certain point. The purple tray icon could also show the percentage inside it.

I'll put this on the backlog and have a bit more of a think about it. Thanks again for the suggestion.

Post a reply

Log in to reply.