Sonarqube unable to see test count in coverage

Hi All
I have a issue While uploading my analysis to sonar dashboard i am unable to no of testcases under mesaure under coverage tab how can i find no of test cases Please suggest

mvn clean -U test -Dmaven.test.failure.ignore=true sonar:sonar -Dsonar.test.inclusions=./src/test/**/* -Dproject.org=${params.ALM_ORG_ID} -Dsonar.projectKey=${params.ALM_ORG_ID}.api-facade-metadataapi -Dsonar.projectName='CXU Metadata API' -Dsonar.java.coveragePlugin=jacoco -Dsonar.exclusions=**/*.xml,src/main/resources/*,src/main/java/pom.xml,src/main/java/com/oracle/cxunity/metadata/MetadataApplication.java,src/main/java/com/oracle/cxunity/metadata/model/*,src/main/java/com/oracle/cxunity/metadata/service/ProxyExchangeIntercept.java -Dsonar.junit.reportPaths=target/surefire-reports/ -Dsonar.sourceEncoding=UTF-8 -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml

Hi,

For sonar.junit.reportPaths you’ve provided a path to a directory. The docs call for (emphasis mine):

Comma-delimited list of paths to Surefire XML-format reports.

And while I’m looking at your properties:

  • sonar.projectKey & sonar.projectName - With a Maven project, you shouldn’t need to specify these; they’re picked up from your pom.
  • sonar.java.coveragePlugin - this doesn’t do anything

 
HTH,
Ann