It is possible to feed SonarQube with tests execution and code coverage reports.
To be reused by SonarQube:
- The tests execution reports have to comply to the JUnit XML format.
- The code coverage reports have to be generated by JaCoCo, Cobertura or Clover.
You can check the page of each coverage plugin to get more information on how to generate the reports or you can check the Analyzing with Maven documentation.
When no reports are found, coverage value is not set. This behaviour can be overriden by a property for JaCoCo, please check the JaCoCo plugin page to see how.
You can set the following properties to import those reports: