Code Coverage for C/C++ using Visual Studio Coverage Getting 0.0%

Currently using SonarQube 9.8

Currently I am trying to use sonar.cfamily.vscoveragexml.reportsPath but am getting no coverage reported back to me. I cant tell if I set it up wrong or what is going on. Are there better install directions than the ones located here “GitHub - sonarsource-cfamily-examples/linux-autotools-gcov-travis-sc: An example C++ repository built with CMake on Linux using GitHub Actions and analyzed on SonarCloud (test coverage by gcov)” that will walk me through step by step how to get it to run properly?

Hoping to learn a better method/ or a better written walkthrough of adding coverage to my C/C++ project.


Welcome to the community!

Can you share your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.


Hello Ann thank you for the welcome!

I am quite new to the use of Sonarscanner and I am not 100% sure what I would be looking for is there a way you could provide an example of what it looks like so I can provide you with the correct info!
Thank you for Your response by the way in helping!


What I’m looking for is the stdout output from the analysis command.