$npx skillfedfor your agent

gcovr

Generate C/C++ code coverage reports with gcov

Worth itPyPI Software DevelopmentReleased Jan 20264.4M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — gcovr-8.6-py3-none-any.whl
v8.6 · released 2026-01-13 · Python >=3.10 · 5 runtime deps: colorlog, jinja2, lxml, pygments, tomli

Yes. Gcovr is a mature, actively maintained tool (production-stable, last commit 2026-08-12) with low install friction, no known vulnerabilities, and a permissive license. Install it if you need to measure or report code coverage for GCC-compiled C/C++ projects, especially in CI/CD contexts where structured output formats are required.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires GCC-compiled code instrumented with --coverage flag; gcov utility must be available on the system.
  • Low install friction: pure Python wheel with five common dependencies (colorlog, jinja2, lxml, pygments, tomli).
  • Active maintenance with last commit 2026-08-12 and 213 days since last release; stable production status.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-01-13 (213 days) · last repo commit 2026-08-12 · 991 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,376,275 downloads/mo, #2,316 on PyPI

Verify before relying

pip install gcovr

# After compiling C/C++ code with --coverage -g -O0 and running tests:
gcovr

# Generate detailed HTML report:
gcovr --html-details coverage.html
  • Whether gcovr works with Clang or other compilers beyond GCC.
  • Performance characteristics when processing large codebases or many coverage files.
  • Integration requirements with CI/CD systems beyond the CLI interface.
Same gist for agents: .md · .json

What it is and what it does

Gcovr is a command-line tool that wraps GCC's gcov utility to collect and report code coverage from C and C++ projects. It reads raw coverage data generated by instrumented executables and transforms it into human-readable summaries or structured reports in formats like HTML, JSON, CSV, and various XML dialects (Cobertura, Clover, JaCoCo, LCOV, SonarQube). The tool is inspired by Python's coverage.py and fills a similar role for compiled languages.

You use gcovr after compiling your code with GCC's --coverage flag and running your test suite. It can produce compact console summaries, detailed HTML pages with per-file annotations, or machine-readable reports for integration with CI systems and coverage dashboards. The package depends on colorlog for colored output, jinja2 for HTML templating, lxml for XML processing, pygments for syntax highlighting, and tomli for configuration parsing.

Use it for

  • Generate coverage reports in CI/CD pipelines to track test quality across builds and commits.
  • Create HTML coverage dashboards showing which lines of C/C++ code are exercised by tests.
  • Export coverage data to Cobertura or SonarQube format for integration with quality gates.
  • Produce JSON or CSV summaries of coverage metrics for automated analysis or metrics collection.
  • Compare coverage across different test runs or branches using LCOV or Coveralls formats.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Gcovr is a mature, actively maintained tool (production-stable, last commit 2026-08-12) with low install friction, no known vulnerabilities, and a permissive license. Install it if you need to measure or report code coverage for GCC-compiled C/C++ projects, especially in CI/CD contexts where structured output formats are required.

Install

gcovr on PyPI

Before you install

Low install friction: pure Python wheel with five common dependencies (colorlog, jinja2, lxml, pygments, tomli). Active maintenance with last commit 2026-08-12 and 213 days since last release; stable production status.

Requires GCC-compiled code instrumented with --coverage flag; gcov utility must be available on the system.

License in practice

BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install gcovr

# After compiling C/C++ code with --coverage -g -O0 and running tests:
gcovr

# Generate detailed HTML report:
gcovr --html-details coverage.html

Verify before relying

  • Whether gcovr works with Clang or other compilers beyond GCC.
  • Performance characteristics when processing large codebases or many coverage files.
  • Integration requirements with CI/CD systems beyond the CLI interface.

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
colorlogjinja2lxmlpygmentstomli
MaintenanceActively maintained 213 days since the last release
Last repo commit
First released
Downloads4,376,275 / month, #2,316 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software DevelopmentTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Evidence: gcovr-8.6-py3-none-any.whl

Tags

Capabilities
gcc code coverage reportsgcov coverage analysisc++ coverage reportingcobertura xml reportscoverage html generationcode coverage metricstest coverage analysis
Topics
code-coveragegcc-toolingci-cd
PyPI keywords
CoberturaJenkinscoveragegccgcovlcov

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “gcc code coverage reports”

  • gcovrGcovr processes GCC code coverage data and generates human-readable…
  • fastcovFastcov generates code coverage reports in JSON, LCOV, and SonarQube…
  • diff-coverCompares test coverage reports against git diffs to identify which…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also fastcov · lcov-cobertura · nosexcover · pycobertura · diff-cover · slipcover · pytest-html · junit2html · coverage · codecov-cli