pytest-cov
pytest-cov copied to clipboard
Coverage plugin for pytest.
# Summary If `pytest` runs in e.g. `./tests/`, it reads `../pyproject.toml` for configuration options, and that squares with my expectation. `pytest-cov` does seem to look only for `./pyproject.toml` (and also...
`--cov-report=term-missing` tells us which line numbers aren’t covered, but you still have to open the file to see the actual code. Could we add a flag (something like `--show-code`) that...
Hi! I use coverage contexts mainly to distinguish coverage from different tox environments with different python version and sometimes different libraries versions. coverage.py allows it by adding `--context {envname}` in...
This `COV_CORE_SOURCE` environment variable is key for making sure that child processes continue computing code coverage. However, there's no guarantee that child processes start in the same directory as their...
Fix a typo and improve the wording.
Please go over all the sections and search https://pytest-cov.readthedocs.io/en/latest/ or https://coverage.readthedocs.io/en/latest/ before opening the issue. # Summary When I run our tests with pytest-xdist, our entire tests about 1035 of...
Rather than update the number, I propose removing it. I think that this removes the risk that the text and the code block get out of sync again.
# Summary When any of `--numprocesses`, `--distload`, or `--dist` cli args are present, pytest-cov selects the DistMaster controller for the main pytest process, assuming xdist is being used: https://github.com/pytest-dev/pytest-cov/blob/master/src/pytest_cov/plugin.py#L221 Unlike...
Struggling to create a minimal implementation of this, but it seems that when we're using `pytest-cov`, mocking out `os`, and then have an internal pytest error we have hundreds of...