coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
Add a filter to `testsuite.yml` to only run when `.py` files are changed. This should cleanly coexist with the existing branch filter: > If you define both `branches`/`branches-ignore` and `paths/paths-ignore`,...
**Is your feature request related to a problem? Please describe.** Using `--include` to also report on un-executed files. Here's a use case: **foo.py**: ```python def foo(): return "bar" ``` **test.py**:...
**Describe the bug** The following work fine: ``` pytest --cov=torchgeo.datasets tests/datasets/test_landcoverai.py coverage run --source=torchgeo.datasets -m pytest tests/datasets/test_landcoverai.py ``` The following raise an error, possibly due to an import reload: ```...
**Describe the bug** It would seem that the following error is encountered when importing `torchvision` or `transformers.models.distilbert.DistilBertModel` _(which basically imports `torch._dynamo`)_: ``` No source for code: '/private/var/folders/lh/yz1yvyvx5nd2vqq6t9t3qbmw0000gn/T/tmpavruueea/_remote_module_non_scriptable.py'. ``` **To Reproduce**...
**Describe the bug** Here below is an item in "files" generated from coverage.py: > "src\\textual\\widgets\\_list_item.py": { > "executed_lines": [ > 1, > 3, > 5, > 6, > 7, >...
The performance overhead of test coverage is insane - 5 times slower on python code - REPRO ATTACHED
**Describe the bug** Hello, I was running some benchmark on my python codebase on different hardware. Turns out, there were massive unexplained differences up to 10 times slower in some...
foo.py: ``` def doit(o, r): try: _doit(o, r) except: pass def _doit(o, r): try: if r: raise ValueError("hey") except ValueError: raise Exception("hi") finally: if o: print("close") return "boo" doit(False, True)...
Hi! I wouldn't know what to do without `coveragepy` so thanks for releasing and sharing this software as Open Source with the community. :pray: I have been able to track...
As shown in the picture: why some python code line is marked as green but never run? c++ code:  coverage html report:  Maybe this is not a bug,...
**Describe the bug** On the waitress project we use coverage along with pytest-cov to compute coverage on all runs. Most recently we received a new contribution that fired CI across...