coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
**Describe the bug** coverage tool fails to identify any source files in installed modules. **To Reproduce** How can we reproduce the problem? Please *be specific*. Don't link to a failing...
**Bug Description** The following code says a branch condition is never false when it is. **To Reproduce** Python code to reproduce the issue (parsers.py): ``` import unittest def parse_sms(text): data...
**Describe the bug** If the body of a `case` block inside a `match` statement is excluded from coverage, the `case` line is still marked as not covered. **To Reproduce** Code...
**Describe the bug** I have a problem with coverage of statements under `async with` while using `fakeredis` library. This problem manifests only under `Python 3.11`. `Python 3.10` correctly reports 100%...
Yesterday, CI was broken as one branch was not covered, see ``` plugins.py 210 0 50 1 99% 303->302 ```  While the arrow symbols for if/else...
**Describe the bug** In the generated coverage.xml report the **** tag is not populating the sources path. **To Reproduce** What version of Python are you using? python = 3.11 pytest...
*Originally reported by* **pckroon (Bitbucket: [pckroon](https://bitbucket.org/pckroon), GitHub: [pckroon](https://github.com/pckroon))** ---------------------------------------- Hi all, first off, thanks for the great work you've been doing so far with this :) This is a duplicate...
**Describe the bug** When using `concurrency=multiprocessing`, setting from API setup in main process won't be picked up by children. **To Reproduce** I don't have a minimal PoC yet but I...
**Describe the bug** While running `pytest` with `coverage` (v6.5.0) for `sphinx`, I noticed an unusual warning in the output logs: ``` sphinx/venv/lib/python3.10/site-packages/coverage/report.py:81: CoverageWarning: Couldn't parse Python file '/home/jka/Documents/personal/sphinx/sphinx/templates/quickstart/Makefile_t' (couldnt-parse) coverage._warn(msg,...
Since I'm seeing a lot of CodeCoverage issues I'm thinking this also has to do with my issue. I'm trying to include the codecoverage from my Python project. First I...