coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
**Describe the bug** In the scriv coverage results, I see this:  The message says the return on 165 wasn't executed, but it is clearly marked as executed. The message...
**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...
**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...
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...
**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...
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 ```...
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...
**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...
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...
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...