Skip to content

Support --fail-under #13

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

Closed
rouge8 opened this issue Jun 23, 2014 · 10 comments
Closed

Support --fail-under #13

rouge8 opened this issue Jun 23, 2014 · 10 comments

Comments

@rouge8
Copy link

rouge8 commented Jun 23, 2014

coverage 3.6 introduced a --fail-under parameter to exit non-zero if coverage is below a certain threshold. It'd be great if pytest-cov also supported this.

@treyhunner
Copy link

👍 this feature would be great

@mthpower
Copy link

👍

@nicolaiskogheim
Copy link

yes! want:+1:

@wolph
Copy link
Contributor

wolph commented Nov 18, 2014

@schlamar: Would you accept a pull request for this?

@schlamar
Copy link
Contributor

Sure :-)

@wolph
Copy link
Contributor

wolph commented Nov 24, 2014

Added the pull requests (had to fork cov-core too): schlamar/cov-core#8
#31

@schlamar
Copy link
Contributor

Will be in 2.0 (#28).

@wolph
Copy link
Contributor

wolph commented Nov 25, 2014

Is there any ETA on that? Cause if it's going to take a long time than I'd opt for using the patch for the 1.x series for the time being ;)

@schlamar
Copy link
Contributor

2.0 is basically the next 1.x because it is fully backward compatible ;) (which means there won't be a next 1.x release)

I have no concrete ETA, but it will be probably released before the end of the year.

@schlamar
Copy link
Contributor

BTW, there is mainly documentation stuff left, so you can speed up a release if you help on open points in #28 :)

jacebrowning added a commit to jacebrowning/template-python that referenced this issue Apr 13, 2015
The call to `coverage` is required until “fail under” is implemented in
`pytest-cov`: pytest-dev/pytest-cov#13
juneqch added a commit to profilech/.cookiecutter-template-python that referenced this issue Jun 8, 2018
The call to `coverage` is required until “fail under” is implemented in
`pytest-cov`: pytest-dev/pytest-cov#13
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

6 participants