Scroll to navigation

GRCOV(1) User Commands GRCOV(1)

NAME

grcov - grcov

DESCRIPTION

grcov 0.8.12 Marco Castelluccio <mcastelluccio@mozilla.com> Parse, collect and aggregate code coverage data for multiple source files

USAGE:

grcov [FLAGS] [OPTIONS] <paths>...

FLAGS:

--branch

Enables parsing branch coverage information

--guess-directory-when-missing

-h, --help

Prints help information

--ignore-not-existing

Ignore source files that can't be found on the disk

--llvm

Speeds-up parsing, when the code coverage information is exclusively coming from a llvm build

--no-demangle

No symbol demangling

--parallel

Sets the build type to be parallel for 'coveralls' and 'coveralls+' formats

-V, --version

Prints version information

OPTIONS:

-b, --binary-path <PATH>

Sets the path to the compiled binary to be used

--commit-sha <COMMIT HASH>

Sets the hash of the commit used to generate the code coverage data

--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

--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

--filter <filter>

Filters out covered/uncovered files. Use 'covered' to only return covered files, 'uncovered' to only return uncovered files [possible values: covered, uncovered]

--ignore <PATH>...

Ignore files/directories specified as globs

--keep-only <PATH>...

Keep only files/directories specified as globs

--log <LOG>

Set the file where to log (or stderr or stdout). Defaults to 'stderr' [default: stderr]

--log-level <LEVEL>

[possible values: OFF, ERROR, WARN, INFO, DEBUG, TRACE]

--output-config-file <PATH>

Specifies the output config file

-o, --output-path <PATH>

Specifies the output path

-t, --output-type <OUTPUT TYPE>

Sets a custom output type: - *html* for a HTML coverage report; - *coveralls* for the Coveralls specific format; - *lcov* for the lcov INFO format; - *covdir* for the covdir recursive JSON format; - *coveralls+* for the Coveralls specific format with function information; - *ade* for the ActiveData-ETL specific format; - *files* to only return a list of files.
[default: lcov]
[possible values: ade, lcov, coveralls, coveralls+, files, covdir, html, cobertura]

--path-mapping <PATH>

-p, --prefix-dir <PATH>

Specifies a prefix to remove from the paths (e.g. if grcov is run on a different machine than the one that generated the code coverage information)

--service-job-id <SERVICE JOB ID>

Sets the service job id [aliases: service-job-number]

--service-name <SERVICE NAME>

Sets the service name

--service-number <SERVICE NUMBER>

Sets the service number

--service-pull-request <SERVICE PULL REQUEST>

Sets the service pull request number

-s, --source-dir <DIRECTORY>

Specifies the root directory of the source files

--threads <NUMBER>

--token <TOKEN>

Sets the repository token from Coveralls, required for the 'coveralls' and 'coveralls+' formats

--vcs-branch <VCS BRANCH>

Set the branch for coveralls report. Defaults to 'master' [default: master]

ARGS:

<paths>...
Sets the input paths to use
February 2023 grcov 0.8.12