In fact, you may have problems integrating with Sonar. The Sonar Surefire Sensor will successfully find your reliable reports; however, the sensor attempts to link the test source for publication in Sonar. When he does this, he assumes the .java file extension. Thus, you will see the output in your assembly, which looks like this:
[INFO] [13: 00: 34.734] Sensor SurefireSensor ...
[INFO] [13: 00: 34.735] parsing / home / amcdowel / accurev / projectFoo / target / surefire-reports
[WARN] [13: 00: 34.747] Resource not found: com.abc.monitor.app.model.MonitorTest
The code coverage generated by your Spock tests will be successfully reported in your Sonar dashboard, but the number of unit tests and the number of errors / errors will not be included.
Aaron mcdowell
source share