Added support for cov-min option to require coverage percentage#34
Added support for cov-min option to require coverage percentage#34schlamar merged 9 commits intopytest-dev:2.0from
cov-min option to require coverage percentage#34Conversation
|
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 ;)