PR Analysis Test Coverage Issue in SonarQube Cloud

Hello Team,

Our development team has recently onboarded to the SonarQube Cloud (Team Plan). We are currently facing an issue related to test coverage data in PR analysis.

Scenario:
We made a small code change (about 5 lines) in the abc.py file and added corresponding tests to ensure full coverage for those lines. However, during SonarQube PR analysis, the report indicates lower test coverage, and the analysis unexpectedly includes other unrelated files in the coverage calculation besides abc.py.

Could you please help us investigate this issue? Due to this behavior, we are unable to correctly set or validate our quality gates.

Thank you for your support.

regards,
Rajnish

Hi,

Welcome to the community!

This is going to be a question of the SCM data available to analysis.

Please make sure the prerequisites are in place.

 
HTH,
Ann