Go code coverage in community edition

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - Community edition
  • what are you trying to achieve - we are trying to achieve go language code coverage in community edition

Hi @prasunaggarwalmsft ,

Please see our Community Guide on how to get Go coverage: [Coverage & Test Data] Generate Reports for Apex, C/C++, Objective-C, Go, JS/TS and Python

Once you have your coverage file, then use the sonar.go.coverage.reportPaths analysis parameter and define the path to that coverage file. You can define this in sonar-project.properties or at the sonar-scanner command line.

See Test Coverage & Execution | SonarQube Docs for more information.