pytest-cov icon indicating copy to clipboard operation
pytest-cov copied to clipboard

Coverage plugin for pytest.

Results 169 pytest-cov issues
Sort by recently updated
recently updated
newest added

I'm wondering if you've considered (or would consider a PR) implementing support for `diff_cover`? I'm thinking something like `pytest --cov --cov-report=term-diff`, which would essentially run diff_cover and add it to...

So this may be silly, sorry if it is, but I don't understand the [docs](https://pytest-cov.readthedocs.io/en/latest/config.html#caveats): > A unfortunate consequence of coverage.py’s history is that `.coveragerc` is a magic name: it’s...

# Summary some lines are actually ran, but reported as missing in coverage. ## Expected vs actual result Expected cov: 100% Actual cov: 76% # Reproducer `reproducer.py` ```python import time...

# Summary When using pytest --cov together with a FastAPI app, sqlalchemy (async Postgres connection) and pytest-docker (for the DB) we get back wrongly calculated coverage for the services. For...

I propose adding clarification of the abbreviations in the coverage report. These are not mentioned anywhere in the documentation and there is even a [StackOverflow question](https://stackoverflow.com/questions/55293195/what-is-pytest-result-mean ) about those. =====...

skip-changelog

# Summary `pytest-cov` fails when running from the context of a mounted filesystem in Azure Machine Learning. This may relate to the lack of support to the CIFS filesystem reported...

# Summary `test_contexts` fails with the latest release of `coverage == 6.5.0`. ## Versions A tox run is visible in my fork: https://github.com/danigm/pytest-cov/actions/runs/3563407946/jobs/5986157416 This is the output: ```python =================================== FAILURES...

# Summary If you have a test with `@pytest.mark.no_cover` and use `--no-cov`, the test fails with `AttributeError: 'NoneType' object has no attribute 'pause'`. This was mentioned in https://github.com/pytest-dev/pytest-cov/issues/562 but didn't...

# Summary ## Expected vs actual result Have a coverage output # Reproducer Clone carate [repo](https://codeberg.org/sail.black/carate.git) Run ```bash git clone https://codeberg.org/sail.black/carate.git git checkout dev pip install -e . pytest tests/...

``` _______________________________________________________________________ ERROR at setup of test_show_missing_coveragerc[branch1c] ________________________________________________________________________ file /usr/ports/devel/py-pytest-cov/work-py39/pytest-cov-4.0.0/tests/test_pytest_cov.py, line 659 def test_show_missing_coveragerc(pytester, testdir, prop): E fixture 'pytester' not found > available fixtures: adjust_sys_path, anyio_backend, anyio_backend_name, anyio_backend_options, cache, capfd,...