0.0% Coverage in SonarAnalysis - Even when it has 100% in local test

Details about sonar server we are using,

  • Developer Edition - Version 9.9.1 (build 69595)
  • SonarQube is deployed in a azure VM (IIS server)

We have multiple projects analyzed by sonarqube, which correctly reports the issues, coverage etc.

We recently introduced a new project (PR merge to master), where the sonar analysis show 0.0% of code and line coverage. we tried to reproduce the same in the local build, the coverage passed with 100% (attached both images FYR). below examples are only for one file, it happens for every single file

Below figure 1.1 - working in local

Below figure 1.2 - analysis did in the PR merge failed with 0.0%

did anyone faced these kind of issue, am I missing any configuration, kindly help me out on this.

Thanks in advance

Hi @Akshay_Kumar ,
To get code coverage in sonar you need to
1/ run unit tests,
2/ generate the coverage report
3/ set the path to the report in the scan command or sonar-project.properties
You will find some helpful informations in