gcovr
gcovr: A free, open-source coverage utility for C/C++ teams that need detailed reports and build gates. Ranked #13 of 27 in Test Coverage Tools by our editors (6.0/10); pricing: Free plan; best for C/C++ teams needing rich reports and gates.
At a glance
- Editor score6.0 / 10
- PricingFree plan
- Best forC/C++ teams needing rich reports and gates
- Free planYes
- Paid fromNone
- Coverage typesline, branch, decision, function, condition, call
- Facts checked20 Sep 2026

Where it wins
- Covers line, branch, decision, function, condition, and call coverage
- Exports HTML, text, CSV, JSON, Markdown, and multiple XML formats
- Fails builds when coverage falls below configured thresholds
Where it doesn't
- Focuses on C and C++ coverage workflows
- Requires compiler-generated coverage data to operate
- Runs locally as a Python package rather than a hosted service
Our verdict on gcovr
gcovr is an open-source command-line utility for developers working with GCC- or Clang-instrumented C and C++ software. It runs GNU gcov or LLVM coverage tools, summarizes the resulting data, and supports Linux, Windows, and macOS. The product is aimed at teams that want local coverage analysis, report generation, and automated minimum-coverage checks without a paid plan or hosted dashboard.
Its main strength is breadth within that workflow. gcovr reports line, branch, decision, function, condition, and call coverage, then presents results as annotated HTML source files or text, CSV, JSON, and Markdown reports. It also generates Clover, Cobertura, Coveralls, JaCoCo, LCOV, and SonarQube formats, which can fit different reporting and CI environments. Coverage data from JSON and Cobertura trace files can be combined, while source and coverage-file filters help limit reporting to relevant code. These capabilities make it a practical fit for projects that need several report targets or detailed coverage views.
Build enforcement is another clear use case: command-line options can return a nonzero status when configured coverage thresholds are not met. That supports CI gates without adding a separate hosted service. The trade-off is scope and setup context. gcovr is centered on C and C++ projects and depends on compiler-generated coverage data, so teams working across other languages or seeking a broader testing platform should choose a different category of tool. Choose gcovr when a local Python package, GCC or Clang coverage workflow, varied report output, and threshold-based build failure match your process; avoid it when a hosted interface or wider language coverage is the priority.
gcovr pricing
gcovr fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Coverage types | line, branch, decision, function, condition, call |
| Supported languages | C, C++ |
| Report formats | text, HTML, CSV, JSON, Markdown, Clover XML, Cobertura XML, Coveralls JSON, JaCoCo XML, LCOV, SonarQube XML |
| Pull-request annotations | Not verified |
| Self-hosted option | Not verified |
| Historical trends | Not verified |
| Coverage gates | Yes |
| Deployment | Desktop |
| Platforms | Windows, macOS, Linux |
| Support | Tickets, Community, Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | gcovr.com |
| Facts checked | 20 Sep 2026 |
Alternatives to gcovr
- CodecovA broad CI coverage platform with strong pull-request checks, analytics, and integrations.10.0
- CoverallsA mature coverage service for multi-language teams needing CI and pull-request visibility.9.2
- ReportGeneratorA flexible command-line coverage reporter with strong aggregation and history features.7.7
Used gcovr? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used gcovr for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
gcovr is listed in our Test Coverage Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/gcovr/"><img src="https://www.itechguides.com/best/badge/gcovr.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Sep 2026
Advertiser disclosure: iTechGuides is reader-supported. We may earn a commission when you click some links. It never changes a score or a verdict. How we rank.
Last updated · How we research and update


