coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
close #2073 I copied the phrasing from the `Starting processes` section. Hopefully that's correct.
* Fixes gh-2065. * Add a regression test for the failure to collect `.coverage` files when parent and child (`concurrent.futures`) processes have different directory contexts. This test fails for the...
**Describe the bug** context: I'm seeing what I believe are false negatives with coverage>7.10.2 xref: https://github.com/neutrinoceros/runtime-introspect/pull/37 **To Reproduce** The exact python version shouldn't matter (as long as it's 3.13 or...
**Describe the bug** for some reason a triple-nested context manager seems to confuse branch coverage in python 3.14 **To Reproduce** minimal reproduction: ```python import contextlib @contextlib.contextmanager def ctx(): yield def...
# Title `coverage combine` with `relative_files=true` collapses nested directories with duplicate names, causing data loss --- # Description ## Summary When using `relative_files=true`, `coverage combine` generates overly broad path mapping...
It seems that the combination of the `pytest` fixture usage `tmpdir.as_cwd()` and a `ProcessPoolExecutor` prevents the tracing of a dispatched parallel function. A very simple reproducer is possible per the...
**Is your feature request related to a problem? Please describe.** See https://github.com/bazel-contrib/rules_python/issues/2762 for some context. Due to the way Bazel and rules_python is set up, it can happen that `coverage...
As per an enlightening discussion with @nedbat on a [Discord thread](https://discord.com/channels/267624335836053506/1418696934591561789), coverage.py already reports on function and class coverages. This is achieved through HTML reports, in which we can see...
https://coverage.readthedocs.io/en/7.10.6/contributing.html mentions `git`, `make` and `tox` as implied. People will probably figure out that `tox` needs to be installed somehow. But while looking into #2050, I noticed that `tox` does...