Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail if coverage under threshold #65

Open
damienmac opened this issue Mar 13, 2020 · 1 comment
Open

Fail if coverage under threshold #65

damienmac opened this issue Mar 13, 2020 · 1 comment

Comments

@damienmac
Copy link

Many coverage tools will "fail" if below a configured threshold. This allows my build system to ensure nobody adds new code without also adding unit tests.

What would you think about adding this feature to deep-cover? When the final
"Overall: 2.61%" is less than "2.00%", for example, where 2.00 was on the command line or config file, then the return code would be non-zero.

Awesome coverage tool, keep up the great work!
-Damien

@marcandre
Copy link
Member

Sounds like a cute feature, definitely.

Do you think you might be able to provide a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants