pytest-cov
pytest-cov copied to clipboard
Coverage plugin for pytest.
It is sometimes useful to "reset" all the --cov=X options passed in "so far", eg. ``` pytest --cov=app --cov-reset --cov=app/module ``` would only check for coverage on `app/module` instead of...
# Summary I use pytest-cov on CircleCI for my project (python-mbedtls) and the latest 2.9.0 crashes with a traceback, although the previous versions were working without problem. The crashes happen...
# Summary I have `report: precision` set to 2 and `fail_under` set to 97.47, and my test coverage total is reading as 97.47, but I'm getting a failure message and...
Before proposing please consider: * the maintenance cost of the feature → probably not much if `coverage.py` is used * implementing it externally (like a shell/python script, pytest plugin or...
# Summary People are using `tox -p auto` or `tox -p all` more and more since it exists, (and some are simply using `&` in shell scripts). But it's failing...
Running pytest-cov with xdist (`py.test -n auto --cov --cov-report=html`) shows a warning at the end of the test run (`Coverage.py warning: No data was collected`) and reports 26431/73593 covered statements...
# Summary When trying to get coverage on something like `myproject`, while also running a warning filter on a warning within that project, say `myproject.MyWarning` coverage is started too late....
We run coverage in `parallel=True` mode, because we have some tests that spawn subprocesses, and we want to capture coverage for all of them. To get a complete report for...
Hi, here you can find a simple way to include context info into a project for our unittext, I read in some post about it was not clear how context...
# Summary pytest-cov needs a a job (tox env) that tests it using pytest from master branch, so we find bugs before a new release is made. # Details At...