Is there any plan to support C++ code coverage

Would like see coday support CMake C++ project to generate coverage report

Hey @BlurringShadow

Can you tell me the format of the generated coverage report? Is it lcov, OpenCppCoverage, or other?

You can find the list of already supported coverage report formats on our documentation.

I might go with Clang coverage report, since I use Clang to compile my code on Ubuntu.

Cool! In that case, you should be able to configure llvm-cov to export the coverage report to the lcov format, which is supported by the codacy-coverage-reporter.

Then, you should be able to upload the resulting coverage report file using a command like this:

bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
  -l CPP --force-language -r <coverage report file name>
1 Like

Thanks, I’ll try that in my Github CI.

1 Like