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

We* are concerned about what 3.11 is doing to the performance of coverage.py. This is more of a CPython issue, but I'm hoping that the coverage.py folks can provide some...

performance
next

**Describe the bug** I observed some warnings when installing coverage related to the packaging of coverage, likely caused by lack of [PEP-517](https://peps.python.org/pep-0517/) compliance. ``` Using legacy 'setup.py install' for coverage,...

enhancement
question
install

*Originally reported by* **Abdeali Kothari (Bitbucket: [AbdealiJK](https://bitbucket.org/AbdealiJK), GitHub: [AbdealiJK](https://github.com/AbdealiJK))** ---------------------------------------- I have a case where I have some pyspark codes in my code base and I am trying to test...

exotic

*Originally reported by* **Antony Lee (Bitbucket: [anntzer](https://bitbucket.org/anntzer), GitHub: [anntzer](https://github.com/anntzer))** ---------------------------------------- coverage 4.1, python 3.5.2, arch linux test.py ``` cond = True if cond: x = 1 else: x = 2...

enhancement

As detailed in https://github.com/nedbat/coveragepy/issues/1350, coveragepy currently reports a single file with zero tests like ``` def foo_a(x, y): return x + y ``` as having 50% coverage. With [dynamic contexts](https://coverage.readthedocs.io/en/latest/contexts.html#dynamic-contexts)...

This pr adds support for including namespace packages the coverage report. Fixes https://github.com/nedbat/coveragepy/issues/1383

Replace MyFrame_lasti() with PyFrame_GetLasti(): Python 3.11.0b1 adds PyFrame_GetLasti(). Add pythoncapi_compat.h header file to get PyFrame_GetLasti() on Python 3.10 and older. File copied from: https://github.com/python/pythoncapi_compat Keep compatibility code for alpha versions...

This PR fixes issues with Cython coverage plugin - see https://github.com/cython/cython/issues/3515. This PR partialy reverts commit https://github.com/nedbat/coveragepy/commit/106828c2cc8bbce1e5fb31c6a89ea3ac025225c1 which introduces this issue. Fixes #972