-
Notifications
You must be signed in to change notification settings - Fork 211
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
Added support for cov-min
option to require coverage percentage
#34
Conversation
Thanks. But the tests still fail on Python 3. And please add the following test cases for the new feature:
|
Do you have a working test suite? Simply running |
You need to run tox in pytest-cov subdirectory :) I just updated the 2.0 branch, please rebase your changes. |
The no output case isn't a problem in terms of stability since that just returns the default of 0% coverage right now. Besides that, it defaults to I've added the tests in any case. |
Your test case is not testing disabled output. You need to pass |
Plus, returning 0 in the no output case is not the right behavior. |
Ah, I thought that wasn't an option here. Guess I was tricked by this line: https://github.com/schlamar/pytest-cov/blob/master/pytest_cov.py#L95 |
If the |
Added support for `cov-min` option to require coverage percentage
Great. Thank you 🍰 |
Finally, a working pull-request
Last time I'm making a pull request from a train with a connection that's constantly timing out ;)