coverallsapp / coverage-reporter

Self-contained, universal coverage uploader binary. Under development.
https://coveralls.io
MIT License
49 stars 17 forks source link

Does coverage-reporter support cpp bazel coverage output format? #47

Closed aaron-ai closed 1 year ago

aaron-ai commented 1 year ago

Question

Does coverage-reporter support cpp bazel coverage output format?

We generate coverage file by bazel coverage //....

mrexox commented 1 year ago

Hey! As long as I understand from the docs bazel creates coverage report in LCOV format. coverage-reporter supports LCOV, however, as they say, the coverage report filename is something like _coverage_report.dat, so for correct parsing I suggest providing --filename <path-to _coverage_report.dat> and --format lcov options.

coverage-reporter won't be able to automatically detect the format of this file since it uses filename patterns to detect it, and for LCOV filenames should end with .lcov or lcov.info

If you face any issues with the bazel reports, please create an issue or extend this one, and I'll be glad to help :)