Coverage.py
7.3#3 in test coverage toolsFree planFree planAPILinuxmacOSSelf-hosted
Visit| Fact | Coverage.py | LLVM llvm-cov |
|---|---|---|
| Integrations | Official examples cover pytest, unittest, and nose, and pytest commonly uses the pytest-cov plugin. | The documentation describes using llvm-profdata to merge raw or indexed profiles and exporting coverage in lcov format. |
| Purpose | Coverage.py measures which parts of Python programs ran and identifies executable code that did not run, commonly to gauge test effectiveness. | llvm-cov shows code coverage information for programs instrumented to emit profile data. |
| Security | The project directs vulnerability reports to Tidelift, which it says will coordinate the fix and disclosure. | LLVM says its language frontends, analyzers, optimizers, and code generators are not hardened against malicious input, which can cause arbitrary code execution in LLVM. |
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.
llvm-cov is for developers examining coverage from instrumented C, C++, Objective-C, or Objective-C++ programs. It may suit teams that need line-level details, summary metrics, or machine-readable coverage exports.