LCOV info Output

If you are using tools which handle LCOV info file you can get a coverage report in a suitable info format via the --lcov option:

gcovr --lcov coverage.lcov

With following option you can set user defined fields in the coverage report:

Keep in mind that the output contains the checksums of the source files. If you are using different OSes, the line endings shall be the same.

The LCOV info format is documented at

New in version 7.0: Added --lcov, --lcov-comment and --lcov-test-name.