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

**Is your feature request related to a problem? Please describe.** Usually, all my Python projects are documented using Sphinx. Such a documentation contains also an auto generated Python Class Reference...

enhancement

Started happening in the past two weeks, within the tox CI: https://github.com/tox-dev/tox/actions/runs/7499587729/job/20435785537 in `.tox/py3.12/lib/python3.12/site-packages/coverage/collector.py:507: RuntimeError` ```python _______________ ERROR at teardown of test_list_env_package_self ________________ self = item = def pytest_runtest_teardown(self, item):...

bug
needs triage

*Originally reported by* **Chris Jerdonek (Bitbucket: [cjerdonek](https://bitbucket.org/cjerdonek), GitHub: [cjerdonek](https://github.com/cjerdonek))** ---------------------------------------- I'm experiencing odd behavior I'm hoping you can help with. I'm invoking coverage like this-- $ coverage run --source=my_package scripts/run_tests.py...

bug

Ruff is much faster, and has broad support. https://github.com/akx/pylint-to-ruff could help. https://github.com/astral-sh/ruff/issues/970#issuecomment-1677732895 could also help.

enhancement

**Describe the bug** When executing `run`, `PyRunner` monkey-patches the path so that the directory of the file being run is the first entry in the path instead of the directory...

bug

**Describe the bug** The filter on the coverage resets its state when I go to the previous page. **To Reproduce** Python 3.8.10 coverage.py v7.0.1 in my code, and the live...

bug
html

**Is your feature request related to a problem? Please describe.** I maintain a docker image which is used for testing multiple different projects, and I'd like to provide a set...

enhancement

**Describe the bug** Below is how my code running: 1. Firstly, run a bash script in supervisor.conf: ![image](https://github.com/nedbat/coveragepy/assets/76618826/9dfc1ba2-f49f-463d-bb17-e2718b25dd75) 2. Secondly, use `coverage` run a python file in bash script: `coverage...

bug

**Describe the bug** I am unable to collect code coverage using Django's `ChannelsLiveServerTestCase`. On the other hand, I am able to collect code coverage when extending from Django's `LiveServerTestCase`. **To...

bug

**Describe the bug** In the screenshot below, line 1364 is marked as not covered and line 1367 is marked as covered. This cannot happen. The only way to get to...

bug
good first