Sourced from coverage's changelog.
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. Closesissue 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: :ref:
branch_explain, as requested inissue 1597. Thanks toAyisha Mohammed <pull 2092_>.Tests: the test suite misunderstood what core was being tested if
COVERAGE_COREwasn't set on 3.14+. This is now fixed, closingissue 2109_... _issue 1597: coveragepy/coveragepy#1597 .. _pull 2092: coveragepy/coveragepy#2092 .. _issue 2105: coveragepy/coveragepy#2105 .. _issue 2109: coveragepy/coveragepy#2109 .. _issue 2110: coveragepy/coveragepy#2110
.. _changes_7-13-0:
a6afdc3
docs: sample HTML for 7.13.1a497081
docs: prep for 7.13.1e992033
docs: polish up CHANGES18bba6e
chore: bump the action-dependencies group with 4 updates (#2111)80fb808
refactor: (?x:...) lets us use re.VERBOSE even when combining latercc272bd
docs: leave a comment so we'll find this when 3.12 is the minimum70d007d
types: be explicita2c1940
types: fully import modules that will be patched57b975d
types: explicit Protocol inheritance permits changing parameter
names63ec12d
types: clarify that morfs arguments can be a single morf