Although Sonarqube recognises my spock (groovy) tests (& my dummy JUnit test) my test coverage of my java code remains at zero percent.
I am using:
Sonarqube Version 7.9.1.27448
PostgreSQL Database Version 9.5.17
Groovy Languages Code Analyzer for Groovy 1.6 plugin
Gradle 5.0
My build.gradle includes:
plugins {
id “org.sonarqube” version “2.7.1”
}
sonarqube {
properties {
property “sonar.tests”, “src/test/groovy, src/test/java”
}
}
I get the same zero result whether I include the property “sonar.tests” above or not.
What am I missing? Any thoughts?
best regards
David