NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #108 most downloaded on PyPI
Code coverage measurement for Python
Latest stable
7.17.4
Last release today
20 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
18 years old
202 releases · first in 2009
Drag across the ruler to compare, or tap a release to open it.
BACKWARD INCOMPATIBILITY: the --omit and --include switches now take file patterns rather than file prefixes, closing issue 34 and issue 36.
--omit and --include switches now take file patterns rather than file prefixes, closing issue 34 and issue 36.--source switch, a list of directories or module names. If provided, coverage.py will only measure execution in those source files.--source module has no Python source to measure, or is never encountered at all, or if no data is collected.--include switch to restrict reporting to modules matching those file patterns, similar to the existing --omit switch. Thanks, Zooko.--include and --omit to control what modules it measures. This can speed execution and reduce the amount of data during reporting. Thanks Zooko.__init__.py files, are now reported as having zero statements instead of one. Fixes issue 1.os.fork will properly collect data from both the child and parent processes. Use coverage run -p to get two data files that can be combined with coverage combine. Fixes issue 56.python -m coverage. Thanks, Brett Cannon.:arrow_right: PyPI page: coverage 3.4b1.
:arrow_right: To install: python3 -m pip install coverage==3.4b1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Using *parallel=True* in .coveragerc file prevented reporting, but now does not, fixing issue 49.
:arrow_right: PyPI page: coverage 3.3.1.
:arrow_right: To install: python3 -m pip install coverage==3.3.1
Settings are now read from a .coveragerc file. A specific file can be specified on the command line with –rcfile=FILE. The name of the file can be pro
:arrow_right: PyPI page: coverage 3.3.
:arrow_right: To install: python3 -m pip install coverage==3.3
Added a --version option on the command line.
--version option on the command line.:arrow_right: PyPI page: coverage 3.2.
:arrow_right: To install: python3 -m pip install coverage==3.2
The XML report now includes branch information.
:arrow_right: PyPI page: coverage 3.2b4.
:arrow_right: To install: python3 -m pip install coverage==3.2b4
Fixed a memory leak in the C tracer that was introduced in 3.2b1.
:arrow_right: PyPI page: coverage 3.2b3.
:arrow_right: To install: python3 -m pip install coverage==3.2b3
Classes are no longer incorrectly marked as branches: issue 32.
:arrow_right: PyPI page: coverage 3.2b2.
:arrow_right: To install: python3 -m pip install coverage==3.2b2
XML reporting has file paths that let Cobertura find the source code.
:arrow_right: PyPI page: coverage 3.2b1.
:arrow_right: To install: python3 -m pip install coverage==3.2b1
Source code can now be read from eggs. Thanks, Ross Lawley. Fixes issue 25.
:arrow_right: PyPI page: coverage 3.1.
:arrow_right: To install: python3 -m pip install coverage==3.1
Coverage.py has a new command line syntax with sub-commands. This expands the possibilities for adding features and options in the future. The old syn
:arrow_right: PyPI page: coverage 3.1b1.
:arrow_right: To install: python3 -m pip install coverage==3.1b1
Removed the recursion limit in the tracer function. Previously, code that ran more than 500 frames deep would crash. Fixed issue 9.
:arrow_right: PyPI page: coverage 3.0.1.
:arrow_right: To install: python3 -m pip install coverage==3.0.1
Fixed the way the Python library was ignored. Too much code was being excluded the old way.
:arrow_right: PyPI page: coverage 3.0.
:arrow_right: To install: python3 -m pip install coverage==3.0
Added parameters to coverage.\_\_init\_\_ for options that had been set on the coverage object itself.
:arrow_right: PyPI page: coverage 3.0b3.
:arrow_right: To install: python3 -m pip install coverage==3.0b3
- Add support for finding source files in eggs. Don’t check for morf’s being instances of ModuleType, instead use duck typing so that pseudo-modules c
Add support for finding source files in eggs. Don’t check for morf’s being instances of ModuleType, instead use duck typing so that pseudo-modules can participate. Thanks, Imri Goldberg.
Use os.realpath as part of the fixing of file names so that symlinks won’t confuse things. Thanks, Patrick Mezard.
- Open files in rU mode to avoid line ending craziness. Thanks, Edward Loper.
Open files in rU mode to avoid line ending craziness. Thanks, Edward Loper.
- Don’t try to predict whether a file is Python source based on the extension. Extension-less files are often Pythons scripts. Instead, simply parse t
Don’t try to predict whether a file is Python source based on the extension. Extension-less files are often Pythons scripts. Instead, simply parse the file and catch the syntax errors. Hat tip to Ben Finney.
- Better packaging.
Better packaging.
- Now Python 2.5 is really fully supported: the body of the new with statement is counted as executable.
Now Python 2.5 is really fully supported: the body of the new with statement is counted as executable.
- Python 2.5 now fully supported. The method of dealing with multi-line statements is now less sensitive to the exact line that Python reports during
Python 2.5 now fully supported. The method of dealing with multi-line statements is now less sensitive to the exact line that Python reports during execution. Pass statements are handled specially so that their disappearance during execution won’t throw off the measurement.
Nothing published for this version
- Applied Joseph Tate’s patch for function decorators.
Applied Joseph Tate’s patch for function decorators.
Applied Sigve Tjora and Mark van der Wal’s fixes for argument handling.
Applied Geoff Bache’s parallel mode patch.
Refactorings to improve testability. Fixes to command-line logic for parallel mode and collect.
- Call threading.settrace so that all threads are measured. Thanks Martin Fuzzey.
Call threading.settrace so that all threads are measured. Thanks Martin Fuzzey.
Add a file argument to report so that reports can be captured to a different destination.
Coverage.py can now measure itself.
Adapted Greg Rogers’ patch for using relative file names, and sorting and omitting files to report on.
One column per quarter.