user525542
user525542

Reputation: 9

resource is not indexed in grails project and sonar

I want to use sonar to monitor the junit test code coverage for a grails project. firstly I use grails code coverage plugin to generate the coverage.xml and configure sonar.groovy.cobertura.reportPath property, but there is no data in junit part. So I change the sonar.sources in the pom.xml from grails-app to grails-app/controllers,grails-app/services,grails-app/domain. then the junit code coverage appears but the console shows resource is not index.and the issues part in sonar dashboard becomes 0. How can i solve that? thank you very much. sonarqube 4.5.1 Groovy sonar plugin 1.0.1 maven 3.2.5 the pom configuration is below:

<sonar.language>grvy</sonar.language>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.surefire.reportsPath>test/reports</sonar.surefire.reportsPath>
<sonar.groovy.cobertura.reportPath>test/reports/cobertura/coverage.xml</sonar.groovy.cobertura.reportPath>
<!--sonar.groovy.codenarc.reportPath>test/CodeNarcReport.xml</sonar.groovy.codenarc.reportPath-->
<sonar.sources>src/groovy,src/java,grails-app/controllers,grails-app/services,grails-app/domain</sonar.sources>

BR, victor

Upvotes: 0

Views: 294

Answers (1)

Wohops
Wohops

Reputation: 3121

It seems that your problem is related to the following issue: http://jira.codehaus.org/browse/SONARGROOV-8

Note that the ticket has been resolved and the fix will be part of version 1.1 of the plugin (requires SQ 4.5.2).

As the plugin has not yet been released, you may want to test the snapshot. Please refer to this thread: http://sonarqube.15.x6.nabble.com/VOTE-Groovy-Plugin-version-1-1-td5033128.html

Upvotes: 2

Related Questions