pytest-cov
pytest-cov copied to clipboard
Coverage plugin for pytest.
I want to run pytest with coverage option only when the command is not launched inside pycharm. Previously I just added a hook in conftest.py and it was working well:...
When using --cov-report=somedir/ or even using the default htmlcov dir, the report is written where the code ch dirs, **not from where pytest is started**. Happens for both html and...
We support `--cov-fail-under` and `fail_under` options to fail tests when tests are under some coverage amount. https://github.com/pytest-dev/pytest-cov/pull/141 In an effort to asymptotically get to 100%, some repos may want `--cov-fail-over`...
Hello. Tests test_multiprocessing_pool, test_multiprocessing_pool_terminate and test_multiprocessing_pool_close cause deadlock with Python 3.8a4. I don't know whether it's related to #294 or not and I haven't had time to investigate it more.
Hello, Imagine you have 2 `setupXXX.cfg` files in your repository, both containing (different) configuration for the coverage. When I run `pytest -c setup.cfg` (or I simply omit the `-c` option)...
I've talked a bit to @nedbat and he is open to the idea of moving the wrapper that is pytest-cov inside https://github.com/nedbat/coveragepy The impending release of coveragepy 5.0 and various...
when running with `pytest --cov=/src/redacted/ -n auto` ``` [run] branch = True concurrency = multiprocessing # pytest-twisted runs a twisted reactor in a greenlet greenlet ``` ``` pytest-4.5.0, py-1.8.0, pluggy-0.9.0...
so I can run `pytest --cov=/src/redacted/ --cov-fail-under=90 --cov-fail-under=100:/src/redacted/testing/ --cov-fail-under=80:/src/redacted/redacted/`
This issue can be observed in this log https://travis-ci.org/nengo/nengo/jobs/510052898#L894. Sorry I couldn't come up with a smaller test case, but it seems to be a specific interaction with this repo...
I am running pytest for the [`krotov` package](https://travis-ci.org/qucontrol/krotov) with both pytest-cov and the [nbval plugin](https://nbval.readthedocs.io/en/latest/) to validate jupyter notebook in the documentation. Since `pytest-cov` was updated to version 2.7.1, there...