coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

The code coverage tool for Python

Results 245 coveragepy issues
Sort by recently updated
recently updated
newest added

**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...

bug

**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...

enhancement

**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...

bug

**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...

bug

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...

enhancement

**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...

enhancement

**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...

bug

**Describe the bug** ``coverage`` is failing to combine duplicate source files from different environments. For example, take the below screenshot. ![image](https://user-images.githubusercontent.com/112419414/211938791-a1a41c26-5fcf-4742-a4e3-4869dd0d94ac.png) **To Reproduce** How can we reproduce the problem? Please...

bug

**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...

bug

**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...

bug