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.
Set the following properties to import those reports:
If you are using JaCoCo and are defining
argLine property in surefire configuration please check JaCoCo plugin page