EVERYTHING XIAOMI
Get listed
Side by side

Coverage.py vs gcovr

Coverage.py

7.3#3 in test coverage toolsFree plan
Free planAPILinuxmacOSSelf-hosted
Visit

gcovr

5.9#17 in test coverage tools
LinuxmacOSWindows
Visit

What both publish

FactCoverage.pygcovr
ConfigurationSettings can live in .coveragerc, TOML, setup.cfg, tox.ini, or pyproject.toml files.The user guide includes configuration files, exclusion markers and reproducible timestamp features.
Coverage typesIt measures statement coverage by default and can also measure branch coverage.Its branch coverage reports are based on GCC's -fprofile-arcs control-flow graph data.
InstallationThe documented installation command is `python3 -m pip install coverage`.gcovr is distributed as a Python package installable with pip, with development versions installable from GitHub.
IntegrationsOfficial examples cover pytest, unittest, and nose, and pytest commonly uses the pytest-cov plugin.Cobertura XML can be used with Jenkins, and gcovr also produces Coveralls and SonarQube formats.
LicenseCoverage.py is licensed under the Apache 2.0 License.gcovr is available under the BSD 3-Clause License.
PurposeCoverage.py measures which parts of Python programs ran and identifies executable code that did not run, commonly to gauge test effectiveness.gcovr manages GNU gcov and generates summarized code coverage results.
Report formatsReports can be emitted as text, HTML, XML, LCOV, or JSON.It generates text, HTML, CSV, JSON, Markdown, Clover, Cobertura, Coveralls, JaCoCo, LCOV and SonarQube reports.

Coverage.py plans

  • Coverage.pyFree
  • FreeFree

gcovr plans

No prices published.

Pick Coverage.py if…

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.

Pick gcovr if…

gcovr suits C and C++ developers who use GCC coverage data and need reports for local workflows or CI tools. It may also fit teams that want output in formats such as Cobertura, JaCoCo or SonarQube.

Charts they share