How to generate code coverage for particular git branch ? I am able to see coverage for master branch, Is there any property to generate and publish report for the dev branch?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : 7.9
  • what are you trying to achieve: Code coverage for development branch.
  • what have you tried so far to achieve this

Hi,

Welcome to the community!

You just need to generate the coverage report for the branch and feed it in to analysis.

 
Ann

Thanks Ann, I am getting coverage report as Hyphen (-) instead of percentage. Can you please help me to see it as percentage ?

-Ganesh

Hi,

A dash is shown for coverage when no data is provided at analysis time. You’ll need to generate the coverage report for the branch and feed it in to the analysis.

 
Ann