coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

The code coverage tool for Python

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

In the HTML report, if the "filter" input contains a value when the page loads (e.g. when refreshing the page), it is ignored. This happens even though an event is...

**Describe the bug** Two equivalent function using the match/case construct with two different ways to use wildcard pattern are reported differently, with the "or wildcard" case marked as missing branch....

bug
needs triage

I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. -...

bug
question
exotic

The current terminal report is great, but wondered if there would be interest in adding a new output format or flag to support markdown table syntax. This would enable nice...

enhancement
needs triage

**Describe the bug** When a test uses `runpy.run_path` with a `Path` argument (e.g. a `PosixPath`), `coverage` tries to treat it as a string, raising an `AttributeError`. Could be considered a...

bug
needs triage

My usecase is a function that can never be called - It's only checked for callable-ness: ```python def dummy_view(): raise Exception("Cannot be called") # pragma: not covered ``` I'd like...

enhancement

Added css for a Github dark dimmed theme To enable it add this to the config file: ```ini [html] dark_theme = True ```

With https://peps.python.org/pep-0420/ - released with python 3.3 it is no longer required to create an empty `__init__.py` file. However Coverage still skips folders without an `__init__.py` https://github.com/nedbat/coveragepy/blob/0aa1070a2c9a99e10b7790b9a6a40a631ba5514e/coverage/files.py#L409 This causes unexpected...

**Is your feature request related to a problem? Please describe.** I run coverage on pytest under tox in my project, and I'm trying to move to a src layout. That...

enhancement

Scroll markers had the id "mNan" because the line number was not extracted from the correct elements.