- Added a new setting
[report] exclude_also
to let you add more exclusions without overwriting the defaults. Thanks, Alpha Chen, closing issue 1391_. - Added a
.CoverageData.purge_files
method to remove recorded data for a particular file. Contributed by Stephan Deibel. - Fix: when reporting commands fail, they will no longer congratulate themselves with messages like "Wrote XML report to file.xml" before spewing a traceback about their failure.
- Fix: arguments in the public API that name file paths now accept pathlib.Path objects. This includes the
data_file
andconfig_file
arguments to the Coverage constructor and thebasename
argument to CoverageData. Closes issue 1552. - Fix: In some embedded environments, an IndexError could occur on stop() when the originating thread exits before completion. This is now fixed, thanks to Russell Keith-Magee, closing issue 1542.
- Added a
py.typed
file to announce our type-hintedness. Thanks, KotlinIsland.
➡️ PyPI page: coverage 7.2.0.
➡️ To install: python3 -m pip install coverage==7.2.0