Code Coverage with gcov
CommunityInstrument C/C++ coverage with gcov.
Authorgadievron
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers instrument C/C++ projects with gcov to measure test coverage, allowing teams to identify untested code paths and improve testing efficiency.
Core Features & Use Cases
- Instrumentation: Enable coverage data collection by compiling with --coverage flags (CFLAGS/LDFLAGS) and producing .gcda/.gcno files.
- Reporting: Generate per-file reports with gcov and aggregate HTML reports with gcovr.
- Use Case: A team wants to increase line and branch coverage across a large codebase by iteratively adding tests until coverage improves.
Quick Start
Build with coverage: gcc --coverage -o program source.c Run program: ./program Generate per-file report: gcov source.c Create HTML coverage: gcovr --html-details -o coverage.html
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Code Coverage with gcov Download link: https://github.com/gadievron/raptor/archive/main.zip#code-coverage-with-gcov Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.