Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 954 Bytes

lcov.rst

File metadata and controls

24 lines (16 loc) · 954 Bytes

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<gcovr --lcov> option:

gcovr --lcov coverage.lcov

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

  • The --lcov-comment<gcovr --lcov-comment> defines the optional comment.
  • The --lcov-test-name<gcovr --lcov-test-name> changes the test name.

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 https://github.com/linux-test-project/lcov/blob/07a1127c2b4390abf4a516e9763fb28a956a9ce4/man/geninfo.1#L989.

7.0 Added --lcov<gcovr --lcov>, --lcov-comment<gcovr --lcov-comment> and --lcov-test-name<gcovr --lcov-test-name>.