I’m using SonarQube 7.3 with the Jenkins SonarQube Scanner plugin v220.127.116.117. 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 (https://docs.sonarqube.org/display/PLUG/Go+Coverage+Results+Import) 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 (https://docs.sonarqube.org/display/PLUG/PHP+Unit+Test+and+Coverage+Results+Import), 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?