Want to understand more about Sonar code coverage filter defined in Quality gate?

We’re utilizing SonarQube. Within Sonar, we’ve identified the capability to enable Quality Gates or Sonar Way (legacy), which encompasses code coverage testing.
I am curious if just enabling the Quality Gate/Sonar Way (legacy) in alert mode will provide visibility into code coverage?

Or, do we need to follow the instructions on this page (Test coverage parameters) and activate third-party tools for all necessary platforms before enabling the Quality Gate?

Our main objective is to obtain code coverage reports for all our scans.

Hi,

Welcome to the community and great question!

In fact, you’ll need to explicitly feed your coverage reports in to analysis for this to work properly. Otherwise, coverage will always be at 0%.

 
HTH,
Ann

Hello Ann,

Thank you for your response.

Could you point us to some articles that provide a step-by-step guideline we can reference to enable code coverage testing and generate a report? Additionally, would it be possible to understand how the code coverage calculation is performed?

Hi,

The docs should get you started.

 
HTH,
Ann

Hello Ann,
Appreciate your sharing of the details. I am exploring how to enable this in Sonar.

One more question: Does Sonar support VB6 code coverage scans?
I have come across one articles mentioning that Sonar Enterprise supports SAST for VB6 by enabling certain configurations. [Link]
Just curious if Sonar Enterprise has the capability to conduct code coverage scans for VB6.

Hi,

We try to keep it to one topic per thread. Otherwise it can get messy, fast. But this one’s easy: yes.

 
:smiley:
Ann

1 Like