When I scan a multi-modular project for Sonar with the same projectBaseDir the unit test count is wrong. My groovy app has 80 unit tests, my java 0 and my javascript 0. Every time I scan my project, the unit test count ends up 240. If I take the java or the js modules out, it goes down to 160 and down to 80 if I remove the other two modules entirely. How can I have a modular project that shares the same root and won't double/triple count the unit tests? I shouldn't have to have a separate Sonar project or complete module sub-directory for each language I scan in the project.
Sonar 3.7.4, framework 1.4, Sonar-Runner 2.3, sonar-groovy-plugin-1.0-spantree-SNAPSHOT.jar
sonar.projectKey=com.me:myapp
sonar.projectName=MyApp
sonar.projectVersion=1.0
sonar.projectDescription=
sonar.modules=module-java, module-js,module-grvy
module-grvy.sonar.projectName=MyApp - Grails
module-grvy.sonar.language=grvy
module-grvy.sonar.sources=src/groovy
module-grvy.sonar.tests=test/unit
module-grvy.sonar.projectBaseDir=.
module-java.sonar.projectName=MyApp - Java
module-java.sonar.language=java
module-java.sonar.sources=src/java
module-java.sonar.tests=
module-java.sonar.projectBaseDir=.
module-js.sonar.projectName=MyApp - JavaScript
module-js.sonar.language=js
module-js.sonar.sources=web-app
module-js.sonar.tests=
module-js.sonar.exclusions=**/built/*.js
module-js.sonar.projectBaseDir=.
sonar.sourceEncoding=UTF-8
sonar.dynamicAnalysis=reuseReports
sonar.surefire.reportsPath=target/test-reports
sonar.core.codeCoveragePlugin=cobertura
sonar.cobertura.reportPath=target/test-reports/cobertura/coverage.xml