I have a multiproject maven build that I'm scanning with sonar-scanner. I've been able to integrate JaCoCo code coverage reports, but I realized today that I never integrated my unit test reports. In our case, it doesn't get to the sonar scan unless all the unit tests pass, but it would still be nice to show the count of unit tests and be able to navigate to the list of them.
In our build, we have a top-level aggregator pom that specifies all the modules to build. Each of those modules ends up with a "target" directory which contains a "surefire-reports" directory, which has the unit test reports.
I tried setting "sonar.junit.reportsPath" to "target/surefire-reports" in the same way that I set all of my (working) Sonar properties, but that didn't appear to make any difference.
I'm using SonarQube 5.6.5.