How Can We Help?
< All Topics
Print

Publish Code Coverage Reports to SonarQube

Publish RKTracer Code Coverage data to SonarQube

When you generate RKTracer code coverage reports, you need to use the following parameter along with the report generate command.

rkresults -xml

With the above command, the RKTracer tool will generate two XML reports.

rktracer.xml for Jenkins

rktracer-sonarqube.xml for SonarQube

 

To publish code coverage to sonarqube, you need to edit the project properties file and add the following details.

sonar.exclusions=rktracer/**

sonar.language=java

sonar.java.binaries=target/classes 

sonar.coverageReportPaths=/home/user/project-path/rktracer/report/rktracer-sonarqube.xml

 

Then run sonar scanner to publish code coverage data to sonarqube

Previous Publish Code Coverage in Azure DevOps
Table of Contents