coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
**Describe the bug** In python 3.11. there I've found a case involving a conditional statement and multiple `asyncio.to_thread` invocations that causes a line to be reported as uncovered. The problem...
**Is your feature request related to a problem? Please describe.** In many of my projects, I like to use `tox` and `tox-conda` to test my source against multiple versions of...
**Describe the bug** In Python 3.8.2, coverage 6.5.0. I am trying to measure the coverage of a test using subprocess. If I start a subprocess in a different directory than...
**Describe the bug** _I hope this is not a duplicate, I've looked for a while_ I am in a situation where I do not have control over the `--omit` flag...
Is there any way to use omit to specify "all files except "? For example, I have a generated package with some custom code in the `__init__.py`. The generated code...
**Is your feature request related to a problem? Please describe.** We currently run coverage in CI jobs, with some jobs such as unit tests being run in the pipeline triggered...
**Describe the bug** When pytest launches a test using `multiprocessing.Process`, lines hit are not recorded as covered. **To Reproduce** Here is a repo with a minimal reproducible example, along with...
**Describe the bug** ``coverage`` is failing to combine duplicate source files from different environments. For example, take the below screenshot.  **To Reproduce** How can we reproduce the problem? Please...
**Describe the bug** 1) When using `[run]` `source=` with multiple values at least top level files can collide resulting in missing data in a report such as `coverage.xml`. Specifically in...
uncovered branch coverage of outer statement is disabled by ignored coverage of contained statement
**Describe the bug** this was pretty tricky to narrow down -- initially I only found this through `covdefaults` and a particular branch which was conditionally ignored (only on windows) via...