I have couple of non mavenized Grails Project (2.2.1 and 2.3.5 versions). I can generate Unit test results (spock test) in XML format. But these results are not getting published in SonarQube 4.4 version. with Groovy 1.0.1 plugin. Sonar can publish the coverage report. Below are the sonar properties.
sonar.projectVersion=1.0
sonar.sources=grails-app,src
sonar.tests=test\unit
sonar.language=grvy
sonar.junit.reportsPath=\target\test-reports
I have tried all combination of (relative / absolute) path for reportsPath and tests.
On checking the logs, I dont see Surefire Senor being executed at all. There is a similar issue in the tracker, http://jira.codehaus.org/browse/SONARGROOV-2?jql=project%20%3D%20SONARGROOV%20AND%20resolution%20%3D%20Unresolved%20AND%20priority%20%3D%20Major%20ORDER%20BY%20key%20DESC But in this scenario, surefire sensor at least gets called /executed but with error.