I use spock to write a test case and jenkins to run and publish my test cases. I managed to get code coverage information, but the sonar shows me only Java Unit test cases; test examples of groovy completely absent
The following pom.xml is used as a link https://github.com/kkapelon/java-testing-with-spock/blob/master/chapter7/spring-standalone-swing/pom.xml
Would someone please find out what I am missing?
Add the following property to the pom file
<sonar.tests> SRC / test / groovy, SRC / test / Java </sonar.tests>
If you do, both Spock and JUnit tests will show correctly! See attached screenshot
I no longer see this plugin available - I am using 7.7. For which version of sonarqube was this solution?
I see that coverage numbers (from jacoco) are reporting correctly, however this only shows the number of my 3 java tests (junit)
Source: https://habr.com/ru/post/1263416/More articles:Fit colliding elements in a container dynamically - javascriptAndroid device monitor does not open in Android studio on mac - androidMAC - I cannot open Android Device Monitor on Mac - androidTravisCI PHPUnit Fatal Error - Call to undefined method PHPUnit_Util_Configuration :: getTestdoxGroupConfiguration () - phpto fix 2.1.0 session configuration settings (pyspark) - pythonGradle sonarqube does not recognize groovy tests - groovyR ggmap Error: Object 'f' not found - rUnexpected completion of replay - iosggplot does not build a ggmap - r objectCustomization color scheme does not miss colors - wordpressAll Articles