Does sonarqube maven plugin be configured to read failsafe reports?

Does sonarqube maven plugin be configured to read failsafe reports ?
On googling , I found this property :


But in the doc here , I find no reference of it.
Also , when used in my POM, and running mvn sonar:sonar -X (I have setup sonarqube to localhost:9000) , I see that sonar does not pick the reports. I am using


It is however picking up surefire reports mentioned in debug logs :

[DEBUG] 14:30:05.493 Property 'sonar.junit.reportsPath' is deprecated and will be ignored, as property 'sonar.junit.reportPaths' is also set.
[INFO] 14:30:05.493 parsing [/Users/xxx/Cdk/site-order/service/target/surefire-reports]

But I have not set up any such property in my POM. Is this property taking some default value ?


If there were a plugin that read Failsafe reports then it’s likely you would indeed need to configure analysis to pick up the reports. However, I’m not aware of such a plugin.

You may be interested in the Generic Test Data format. If you can convert your failsafe data to that format, you should be able to (configure analysis and) import it.


Hi @ganncamp ,

Thnx for the reply. One question though - Upon searching I found this issue :
Is it related to my need ? Even I need to read IT reports. However , reading comments on it , I am not clear what it is related to.


It’s only tangential at best.


These properties are set by scanner for maven automatically, you are using bit outdated version of the scanner, latest version can be found here

For failsafe reports, we currently don’t support the format natively.

failsafe uses the same format as surefire nowadays, so this configuration in your pom.xml file should be enough :

1 Like