GRCOV(1)
π GRCOV(1) β User Commands energy π
okay bestie, pull up a chair, we're doing grcov(1), the coolest little coverage gremlin in the User Commands section π
β¨ NAME β¨
grcov β literally just grcov, that's the whole name, she needs no introduction π
π SYNOPSIS π
grcov [OPTIONS] <PATHS>...
she takes paths and she takes options and she does the thing π¦
π DESCRIPTION π
grcov β brought to you by Marco Castelluccio <mcastelluccio@mozilla.com> π«Ά β parses, collects and aggregates code coverage data for multiple source files. that's it. that's the whole job. she ate and left no crumbs π
πΈ Arguments:
<PATHS>...β sets the input paths to use π₯ like, the actual files you want her to look at, bestie. feed her the paths.
π OPTIONS π
the main character section. every single flag, all of them, no skips, no cuts, periodt β¨
-b,--binary-path <PATH>β sets the path to the compiled binary to be used π§--llvm-path <PATH>β sets the path to the LLVM bin directory π-t,--output-types <OUTPUT TYPE>β comma separated list of custom output types, and bestie there are SO many flavors π:htmlfor a HTML coverage reportcoverallsfor the Coveralls specific formatlcovfor the lcov INFO formatcovdirfor the covdir recursive JSON formatcoveralls+for the Coveralls specific format with function informationadefor the ActiveData-ETL specific formatfilesto only return a list of filesmarkdownfor human easy readcoberturafor output in cobertura formatcobertura-prettyto pretty-print in cobertura format
[default: lcov] β so if you don't say anything she picks lcov for you, she's thoughtful like that π
-o,--output-path <PATH>β specifies the output path. this is a file for a single output type and must be a folder for multiple output types π (yes, one type = file, many types = folder, don't fight her on this)--output-config-file <PATH>β specifies the output config file π-s,--source-dir <DIRECTORY>β specifies the root directory of the source files πΈ-p,--prefix-dir <PATH>β specifies a prefix to remove from the paths (like, e.g. ifgrcovis run on a different machine than the one that generated the code coverage information) π₯οΈβ¨--ignore-not-existingβ ignore source files that can't be found on the disk π ghost files? not her problem--ignore-parsing-errorβ ignore error when parsing the coverage files π she's choosing peace--ignore <PATH>β ignore files/directories specified as globs π¦--keep-only <PATH>β keep only files/directories specified as globs π--path-mapping <PATH>β yeah the manpage gives you no description here, bestie, she just exists. iconic mysterious behavior fr fr--branchβ enables parsing branch coverage information πΏ--filter <FILTER>β filters out covered/uncovered files. use'covered'to only return covered files,'uncovered'to only return uncovered files π
[possible values: covered, uncovered]
--sort-output-types <OUTPUT TYPES>β comma separated list of output types to sort files lexicographically for π
[default: markdown]
--llvmβ speeds-up parsing, when the code coverage information is exclusively coming from a llvm build β‘--token <TOKEN>β sets the repository token from Coveralls, required for the'coveralls'and'coveralls+'formats π (required bestie, don't forget it)--commit-sha <COMMIT HASH>β sets the hash of the commit used to generate the code coverage data πΎ--service-name <SERVICE NAME>β sets the service name π·οΈ--service-number <SERVICE NUMBER>β sets the service number π’--service-job-id <SERVICE JOB ID>β sets the service job id πΌ
[aliases: --service-job-number]
--service-pull-request <SERVICE PULL REQUEST>β sets the service pull request number π«Ά--service-flag-name <SERVICE FLAG NAME>β sets the service flag name for coveralls parallel/carryover mode π©--parallelβ sets the build type to be parallel for'coveralls'and'coveralls+'formats πβοΈπ¨--threads <NUMBER>β another one where the manpage just leaves you hanging, no description, she's a woman of mystery π§ (but the number is right there in the name, iykyk)--precision <NUMBER>β sets coverage decimal point precision on output reports π―
[default: 2]
--guess-directory-when-missingβ again, no description in the original. she guesses. the directory. when it's missing. do with that what you will β¨--vcs-branch <VCS BRANCH>β set the branch for coveralls report. defaults to'master'π³
[default: master]
--log <LOG>β set the file where to log (orstderrorstdout). defaults to'stderr'π
[default: stderr]
--log-level <LEVEL>β set the log level π
[default: ERROR] [possible values: OFF, ERROR, WARN, INFO, DEBUG, TRACE]
--incl-explicit <PATH>β provides a json file with explicit list of files and lines to include into the report. the json format is{ "path": [[1, 2], ...], ... }, where the numbers are inclusive and 1-based line ranges π (inclusive AND 1-based, bestie, write that down)--excl-line <regex>β lines in covered files containing this marker will be excluded βοΈ--excl-start <regex>β marks the beginning of an excluded section. the current line is part of this section π§--excl-stop <regex>β marks the end of an excluded section. the current line is part of this section π--excl-br-line <regex>β lines in covered files containing this marker will be excluded from branch coverage πΏβοΈ--excl-br-start <regex>β marks the beginning of a section excluded from branch coverage. the current line is part of this section π§πΏ--excl-br-stop <regex>β marks the end of a section excluded from branch coverage. the current line is part of this section ππΏ--no-demangleβ no symbol demangling π€--abs-link-prefix <LINK PREFIX>β generate absolute HTML links with the given prefix π--no-dateβ do not include the current date in the HTML report π π«--html-resources <SOURCE>β where to retrieve the CSS files used to style the HTML reports π¨
[default: bundled] [possible values: bundled, cdn]
-h,--helpβ print help (see a summary with'-h') π¬-V,--versionβ print version π·οΈ
β οΈ bestie reminder:--tokenis required for the'coveralls'and'coveralls+'formats, and-o,--output-pathhas to be a folder the moment you're doing multiple output types. rules are rules π
and that's the whole page, no notes π«Ά this was grcov version 0.10.7, fresh from July 2026 β go get your coverage, main character πβ¨π¦πΈππ
π
π¦ where this page comes from
- ubuntu stonking: grcov 0.10.7-1 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms