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

**Is your feature request related to a problem? Please describe.** Running coverage.py on Cython code with `sys.monitoring` in Py3.13 disables the Cython coverage plugin: https://github.com/nedbat/coveragepy/blob/7f336228d78d8338239d4da4d4de3ade0abd0901/coverage/control.py#L565-L568 **Describe the solution you'd like**...

enhancement

**Describe the bug** Coverage 7.6.3 appears to have introduced a regression in the calculation of branch coverage related to the handling of while loops inside context managers. **To Reproduce** How...

bug

I wonder what is the expected performance of coverage? In my case it looks like some tests run 2x slower than without coverage I am using python 3.12 with standard...

support

This rather peculiar test case was [delta-minimized](https://github.com/dsw/delta/tree/master) from real code (appdirs.py 1.4.1). **It is formatting sensitive**. In particular, removing the `#!` line or moving the close parenthesis that's currently on...

bug

This test module contains a very simple multi-line controlling expression for an `if` statement. ``` def fun(x): if ( x ): print("got here") ``` For some reason, the way the...

bug

### Problem As stated in [this](https://github.com/nedbat/coveragepy/issues/780) thread, function and class coverage has been added in `coverage v7.5.0`! Thank you @nedbat for this game-changer feature! The problem is that it requires...

enhancement

**Describe the bug** I have a case when I get unexpected coverage measurements from a tox-managed virtualenv existing within the source tree. Coveragepy is invoked via `pytest-cov` but all configuration...

bug

**Describe the bug** coverage report data written not collected when using contextlib.chdir with multiprocessing, Coverage writes data relative to the cwd, but I think the parent process should compute an...

bug

**Describe the bug** Playwright tests don't have full coverage in the coverage report, even though the code is run. **To Reproduce** 1. What version of Python are you using? 2....

bug

Hello, I am not that familiar with coverage.py, as I am only using it for part of an evaluation, but I ran into strange behavior and couldn't find anything related...

support