Version 7.13.1 — 2025-12-28
- Added: the JSON report now includes a
"start_line"key for function and class regions, indicating the first line of the region in the source. Closes issue 2110. - Added: The
debug datacommand now takes file names as arguments on the command line, so you can inspect specific data files without needing to set theCOVERAGE_FILEenvironment variable. - Fix: the JSON report used to report module docstrings as executed lines, which no other report did, as described in issue 2105. This is now fixed, thanks to Jianrong Zhao.
- Fix: coverage.py uses a more disciplined approach to detecting where third-party code is installed, and avoids measuring it. This shouldn’t change any behavior. If you find that it does, please get in touch.
- Performance: data files that will be combined now record their hash as part of the file name. This lets us skip duplicate data more quickly, speeding the combining step.
- Docs: added a section explaining more about what is considered a missing branch and how it is reported: Examples of missing branches, as requested in issue 1597. Thanks to Ayisha Mohammed.
- Tests: the test suite misunderstood what core was being tested if
COVERAGE_COREwasn’t set on 3.14+. This is now fixed, closing issue 2109.
➡️ PyPI page: coverage 7.13.1.
➡️ To install: python3 -m pip install coverage==7.13.1