问题
I am using 3.6 maven sonar plugin . While seeing with mvn sonar:sonar -X
, I did not see sonar searching for failsafe report. (Finding it or not finding it is different thing )
According to this doc , I think it cannot be configured for failsafe reports for integration test.
Does mvn sonar:sonar
reads failsafe reports ? If yes , how ?
I have mentioned these properties in my POM:
<sonar.jacoco.reportPath>/Users/xxx/site-order/service/target/jacoco.exec</sonar.jacoco.reportPath>
<sonar.jacoco.reportPaths>/Users/xxx/site-order/service/target/jacoco.exec</sonar.jacoco.reportPaths>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.junit.itReportsPath>/Users/xxx/site-order/service/target/failsafe-reports</sonar.junit.itReportsPath>
回答1:
I asked the same question on sonarqube forum and I got the reply that there is no such direct support in sonarqube maven plugin. Also, look here.
来源:https://stackoverflow.com/questions/56027391/does-maven-sonarqube-plugin-reads-failsafe-reports