Question about code coverage metrics with SonarGo and SonarPHP

(CameronGo) #1

I’m using SonarQube 7.3 with the Jenkins SonarQube Scanner plugin v3.2.0.1227. I’m new to the system and setting up some POC workflow to scan both PHP and Go code.

My coverage reports for both sets of code show 0% coverage, though they are properly detecting the _test files as tests.

I found this ( which I understand to mean any code coverage will be 0% for Go code until I put native go test commands in place and then import those coverage reports into Sonar.

I found this describing the process to import test results and coverage reports for PHP as well (, but I can’t tell if this is simply an option or if, like Go, no code coverage metrics will be reported until the reports are generated by an external tool.

Can anyone point me in the right direction? Does Sonar ever generate code coverage metrics natively?