-
ALM used: Azure DevOps
-
CI system used: Azure DevOps
-
Languages of the repository: Java
-
Error observed: SonarCloud shows neither a proper number of Groovy tests nor Groovy test files.
-
Steps to reproduce
This is my configuration that perfectly works with SonarQube:pomx.xml snippet: <properties> ... <sonar.junit.reportPaths>target/surefire-reports</sonar.junit.reportPaths> <sonar.tests>src/test/groovy,src/test/java</sonar.tests> ... </properties>
The above configuration allows seeing a proper number of tests and groovy files in SonarQube UI.
I want to achieve the same with SonarCloud. What I have tried:
-
Added the same configuration to pom.xml
-
Configured an Azure DevOps pipeline like so:
- task: SonarCloudPrepare@1 inputs: SonarCloud: 'SonarCloud' organization: 'myorg' scannerMode: 'Other' extraProperties: | sonar.junit.reportPaths=target/surefire-reports sonar.tests=src/test/groovy,src/test/java
- Created
.sonarcloud.properties
file in the root folder of my project:
sonar.junit.reportPaths=target/surefire-reports sonar.tests=src/test/groovy,src/test/java
-
Nothing helped.
SonarCloud still displays a number of tests that corresponds to Java tests ONLY. It completely ignores Groovy tests.