gcov vs ReportGenerator
gcov
gcc.gnu.orgReportGenerator
reportgenerator.ioSide by side
| Figure | gcov | ReportGenerator |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | Yes |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 5 |
| Spec score · Test Coverage Tools | 8.5 (#5) | 7.8 (#10) |
| Founded | 1987 | 2009 |
| Purpose | gcov is a test coverage program used with GCC to find untested parts of programs and guide code optimization. | ReportGenerator converts code coverage reports into human-readable reports in multiple formats and visualizes covered source lines. |
| Support | The GCC project directs users to its manuals and the gcc-help mailing list for usage questions. | The maker invites users with issues to get in touch, and Paddle handles customer service inquiries and returns for orders. |
Plans
ReportGenerator
- FreeFree
- Free TrialFree
- Individual$79, paid once
- Team$249, paid once
- Enterprise$599, paid once
In their own words
gcov
gcov is a free test coverage tool used with GCC to show how program code runs during testing. It reports which source lines execute and how often, producing per-line counts in `.gcov` files. Reports can include line, function, branch, condition, prime-path, and basic-block coverage. Options can report branch frequencies, show whether conditions independently affect a Boolean expression’s result, or filter reports to functions matching regular expressions. Output is available as `.gcov` text or gzip-compressed JSON; JSON generation does not require source code. The GCC documentation also describes using gcov with gprof to assess computing time, while warning that optimization can combine source lines and reduce hotspot detail. Before coverage reporting, programs must be compiled with GCC’s `--coverage` option. gcov works only with GCC-compiled code and is not compatible with other profiling or test coverage mechanisms. It runs on Linux, macOS, and Windows, supports the listed languages from C and C++ to Ada, D, and Go, and is self-hosted.
ReportGenerator
ReportGenerator is a command-line tool that turns code coverage reports into readable reports and visualizes covered source lines. It runs on Windows, Linux, and macOS, and accepts input from tools and formats including coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov, and lcov. Reports visualize line and branch coverage; method coverage is a PRO feature. A history chart tracks coverage over time, and the summary table can be filtered and sorted. Risk hotspot analysis can use cyclomatic complexity, NPath complexity, and CRAP score when those values are available, with configurable warning thresholds. Output choices include HTML, Clover, Cobertura, OpenCover, SonarQube, lcov, TeamCity summary, XML, Markdown, JSON, CSV, and text. The maker says GitHub Actions and Azure DevOps are supported. The project is open source under the Apache License, with basic features free and additional features requiring PRO. Lifetime licenses cost $79 as a one-time purchase for an individual, $249, paid once for up to 10 developers, or $599, paid once for unlimited developers.