Coverage.py
7.3#3 in test coverage toolsFree planFree planAPILinuxmacOSSelf-hosted
Visit| Fact | Coverage.py | SimpleCov |
|---|---|---|
| Configuration | Settings can live in .coveragerc, TOML, setup.cfg, tox.ini, or pyproject.toml files. | Configuration supports filters, groups, profiles, line and branch coverage, and coverage thresholds. |
| Integrations | Official examples cover pytest, unittest, and nose, and pytest commonly uses the pytest-cov plugin. | The README points to open source formatter and integration plugins, editor integrations, and hosted commercial services. |
| License | Coverage.py is licensed under the Apache 2.0 License. | The repository identifies SimpleCov as MIT licensed. |
| Purpose | Coverage.py measures which parts of Python programs ran and identifies executable code that did not run, commonly to gauge test effectiveness. | SimpleCov analyzes Ruby code coverage using Ruby’s built-in Coverage library. |
| Reports | It can produce text, HTML, XML, LCOV, and JSON reports. | It includes HTML and JSON formatters and can merge coverage results across test suites. |
Coverage.py is for developers measuring how much of their Python code their tests exercise. Its report formats and dynamic contexts can help teams inspect coverage in different ways.
SimpleCov suits Ruby developers who need coverage reports, thresholds, or a view of which tests cover particular lines. Its Rails profile may also suit projects that include ERB, Haml, or Slim templates.