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

**Describe the bug** In the scriv coverage results, I see this: ![image](https://github.com/nedbat/coveragepy/assets/23789/eef880ab-d093-46de-b7ac-57fab7a453bd) The message says the return on 165 wasn't executed, but it is clearly marked as executed. The message...

bug
branch

**Is your feature request related to a problem? Please describe.** So I have like a huge project to deal with, with hundreds of files and it takes over 2 minutes...

enhancement
html
xml

**Have you asked elsewhere?** The thread in https://stackoverflow.com/a/40518553/6332554 describes a way to "restart" data collection. **Describe your situation** Celery workers do not honour `atexit()` handlers, see https://github.com/celery/celery/discussions/8923. I'm trying a...

support

A project I'm working on is quite large - has a lot of modules (so lots of imports) and a lot of dataclasses. The dataclasses (or other classes that do...

enhancement

**Is your feature request related to a problem? Please describe.** coveragepy adds significant overhead to test execution in CI. And this got much worse with Python 3.12 due to CPython...

enhancement

when I use coverage.py API, it includes the coverage report for the external packages too. For example: ``` /usr/lib/python3/dist-packages/yaml/reader.py: - 135 - 139 - 140 - 147 - 148 ```...

question
support

consider a sample python application (https://github.com/keploy/samples-python/tree/main/django-postgres), I want to get the coverage data for each request coming to my server. I am aware of dynamic-context, but that it is a...

bug
needs triage

**Is your feature request related to a problem? Please describe.** I have the end of the `main()` function like so: ```py ... if args.command == Commands.CMD.value: return cmd_handler(j, args) print(f"Either...

enhancement

This issue was found by running [UndefinedBehaviourSanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) in our internal builds at Google: coverage/ctracer/tracer.c's `CTracer_handle_return()` is sometimes called in situations where `self->pdata_stack->stack` is NULL after the call to `CTracer_set_pdata_stack()`, but...

bug

Hi Ned, I started working on this test to ensure that Coverage.py would provide coverage within pytest modules, but ran out of time before my trip tomorrow. I am also...