Spock tests no impact on coverage percentage

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

I’m having the exact same issue. Haven’t been able to figure it out.

I couldn’t work it out and failed to find a solution, and so I disabled code coverage in the metrics.

Maybe run ‘mvn test’ before, after that the sonar:sonar covers the testresults