Coverage.py
7.3#3 in test coverage toolsFree planFree planAPILinuxmacOSSelf-hosted
Visit| Fact | Coverage.py | PHP_CodeCoverage |
|---|---|---|
| Installation | The documented installation command is `python3 -m pip install coverage`. | The README shows installation as a per-project dependency with Composer. |
| License | Coverage.py is licensed under the Apache 2.0 License. | The repository identifies the library's license as BSD-3-Clause. |
| Purpose | Coverage.py measures which parts of Python programs ran and identifies executable code that did not run, commonly to gauge test effectiveness. | The library collects, processes, and renders PHP code coverage information. |
| Report formats | Reports can be emitted as text, HTML, XML, LCOV, or JSON. | The PHPUnit manual lists HTML, Clover, OpenClover, Cobertura, Crap4J, PHPUnit XML, text, JSONL and serialized PHP output. |
| Security reporting | PyPI directs vulnerability reports to Tidelift, which coordinates fixes and disclosure. | The security policy asks vulnerability reporters to use coordinated disclosure and says not to report vulnerabilities through public GitHub issues, discussions, or pull requests. |
No prices published.
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.
It suits PHP developers and teams that need coverage collection and report generation alongside PHPUnit. It is useful for projects requiring multiple coverage metrics, report formats, or changed-line analysis.