CSV Output

The --csv option output comma-separated values summarizing the coverage of each file. Consider the following command:

gcovr --csv example_csv.csv

This generates an CSV:


Be carefule if you print the output of a CSV to STDOUT and redirect it to a file. According to RFC4180 the line endings must be CRLF.

New in version 5.0: Added --csv.