coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

The code coverage tool for Python

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

**Describe the bug** When ignoring a warning in pytest settings, the coverage results become non-sense with uncovered lines that should be measured as covered. This bug is similar to #1671,...

bug

Fixes #1696 Unfortunately, the test I added doesn’t really do much, since the code always hits this branch while testing. https://github.com/nedbat/coveragepy/blob/8086c7049b71c1a4a9d4338866392028625667d3/coverage/execfile.py#L106-L117 I manually confirmed that my change works, but allowing...

**Describe the bug** When using asyncio with redis.asyncio (redispy), some lines that are definitely hit remain mysteriously uncovered, even when using a combination of different concurrency settings **To Reproduce** 1....

bug
question
async

**Is your feature request related to a problem? Please describe.** I'm integrating `Cython.Coverage` in the @aio-libs projects. It works fine for CPython but crashes on PyPy. This is because `CoverageWarning`...

enhancement

**Describe the bug** `coverage.py` detects (executed and/or missing) branches where really there are none. **To Reproduce** `coverage.py` shows branches for the excerpts below where there are none; I can reproduce...

bug

**Describe the bug** When executing `coverage run -m ...` with the environment variable `PYTHONSAFEPATH=1` set, the working directory appears in `sys.path` **To Reproduce** Create the following two files `printpath.py` ```python...

bug

**Is your feature request related to a problem? Please describe.** I have code which is operating system dependent and hence can't be covered on a single operating system, which doesn't...

enhancement

My use case: is that I write multiple different libraries and have dedicated tests for each library. Each of my libraries may depend on my other libraries and while testing...

enhancement

**Is your feature request related to a problem? Please describe.** Currently coverage supports Python until 3.12.0rc1. Pywikibot framework CI tests for example are tested for Python 3.13-dev too but coverage...

enhancement

First of all, thank you for creating coverage.py—it is a fantastic tool, and I use it in all of my Python projects (at least those that have tests 😅). **Describe...

bug