Coverage.py
Input—per 1M tokens
Output—per 1M tokens
Context—tokens
WeightsClosed
About
Coverage.py is ranked #3 of 26 in test coverage tools on Inferse. It runs on API, Linux, macOS, Self-hosted, Windows. There is a free plan.
Compared on test coverage tools
- Free plan
- Yescoverage.readthedocs.io
- Coverage types
- statement, branchcoverage.readthedocs.io
- Supported languages
- Pythoncoverage.readthedocs.io
- Report formats
- text, HTML, XML, LCOV, JSONcoverage.readthedocs.io
- Self-hosted option
- Yescoverage.readthedocs.io
- Coverage gates
- Yescoverage.readthedocs.io
Facts
- Purpose
- Coverage.py measures which parts of Python programs ran and identifies executable code that did not run, commonly to gauge test effectiveness.coverage.readthedocs.io · 3 Oct 2026
- Reports
- It can produce text, HTML, XML, LCOV, and JSON reports.coverage.readthedocs.io · 3 Oct 2026
- Contexts
- Dynamic contexts can record which test function ran which lines of code.coverage.readthedocs.io · 3 Oct 2026
- Integrations
- Coverage.py can run test suites through their usual command, and pytest-cov is an available pytest plugin that the docs say is unnecessary for most purposes.coverage.readthedocs.io · 3 Oct 2026
- Extensibility
- Third-party plugins can extend measurement to non-Python files, such as mapping executed Python back to Django HTML templates.coverage.readthedocs.io · 3 Oct 2026
- Storage and API
- Coverage data is stored in a SQLite database, and advanced usage can use the Coverage.py API.coverage.readthedocs.io · 3 Oct 2026
- Supported interpreters
- The current documentation lists Python 3.10 through 3.15 rc2, including free-threading, and PyPy3 versions 3.10 and 3.11.coverage.readthedocs.io · 3 Oct 2026
- Measurement cores
- Coverage.py offers ctrace and pytrace tracing cores plus a sysmon core; sysmon is faster for simple line and branch coverage but does not yet support dynamic contexts or plugins.coverage.readthedocs.io · 3 Oct 2026
- Security
- The project directs vulnerability reports to Tidelift, which it says will coordinate the fix and disclosure.github.com · 3 Oct 2026
- License
- Coverage.py is licensed under the Apache 2.0 License.github.com · 3 Oct 2026
- Support
- Users can seek help on the Python discussion forums or Python Discord, report bugs on GitHub, and obtain professional support through Tidelift Subscription.coverage.readthedocs.io · 3 Oct 2026
- Intended users
- The documentation presents Coverage.py as a tool for people measuring Python test effectiveness by seeing which code tests exercise and which they miss.coverage.readthedocs.io · 3 Oct 2026
Best Coverage.py alternatives
See all 12
7.4 Coveralls $10/mo first paid tier Free plan
7.3 Codecov $5/mo first paid tier Free plan
7.0 MozJPEG See plans price on the maker's page
5.9 gcovr See plans price on the maker's page
5.9 ReportGenerator Free free plan, no paid price published Free plan
5.8 Coverlet Free free plan, no paid price published Free plan Where it ranks on Inferse
- Best Test Coverage Tools in 2026#3 of 26
Sources
- coverage.readthedocs.io/en/7.16.2/· checked 3 Oct 2026
- coverage.readthedocs.io/en/7.16.2/faq.html· checked 3 Oct 2026
- coverage.readthedocs.io/en/7.16.2/howitworks.html· checked 3 Oct 2026
- github.com/coveragepy/coveragepy· checked 3 Oct 2026

