coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

The code coverage tool for Python

Results 270 coveragepy issues
Sort by recently updated
recently updated
newest added

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**:...

enhancement

**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: ```...

bug
exotic

**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**...

bug

**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, >...

bug
question

**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...

bug

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)...

bug
branch

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...

bug

As shown in the picture: why some python code line is marked as green but never run? c++ code: ![7487826313f64102f05eb52b61467c5](https://github.com/user-attachments/assets/4fbee8be-ace7-405a-8cf4-5c7071da05f1) coverage html report: ![b23bd5311eca135b49b8e9c5734c50b](https://github.com/user-attachments/assets/0d2687be-be14-408c-ac75-8de1512273dd) Maybe this is not a bug,...

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...

bug
question