coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
**Describe the bug** Coverage supports excluding coverage on branches and on function decorators. Alone these features work, but together they cause a leak of the exclusion into the outer indentation,...
**Describe the bug** This program (minimized from Zulip’s [`TimeoutTestCase.test_timeout_warn`](https://github.com/zulip/zulip/blob/a208da9c4d022d6aa40880a0aaf7d66d95974b43/zerver/tests/test_timeout.py#L42)) succeeds in Python 3.10 without `coverage`, 3.10 with `coverage`, and 3.11 without `coverage`, but it fails in 3.11 with `coverage`. ```python...
Would be nice to have a page where one could enter the context prefix and would return a search result that link to the files that has that context 🤔
(following from the analysis in #1553: https://github.com/nedbat/coveragepy/issues/1553#issuecomment-1546697406) Jinja-rendered templates can appear in coverage.py reports if they happen to be parseable as Python code. This shouldn't happen.
**Describe the bug** Given this program as `test.py`: ```py def func(): val = next((c for c in "abc"), None) print(val) func() ``` Branch coverage claims that there is an uncovered...
*Originally reported by* **controversial (Bitbucket: [controversial](https://bitbucket.org/controversial), GitHub: [controversial](https://github.com/controversial))** ---------------------------------------- I'm using the command-line API to measure coverage as part of my testing script. I'd like, however, to be able to...
*Originally reported by* **John Vandenberg (Bitbucket: [jayvdb](https://bitbucket.org/jayvdb), GitHub: [jayvdb](https://github.com/jayvdb))** ---------------------------------------- If a branch only contains `pass` it is required to be covered even if the branch is `#pragma: no cover`....
**Describe the bug** Combining reports across different versions of Python yields inconsistent coverage results, depending on the version of Python that was used to produce the report. **To Reproduce** I've...
**Describe the bug** Hello, We have had a dramatic reduction in coverage for about a month and I'm not sure what is the issue. We basically lost coverage everywhere but...
**Describe the bug** Test coverage is not measured for coroutines when `coverage` is run in parallel with `concurrency = multiprocessing`. The following commit introduced this regression in Django: https://github.com/django/django/commit/69352d85fa8412865db9e0c7f177b333c0eac3e2. Running...