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/**/*${params.ALM_ORG_ID} -Dsonar.projectKey=${params.ALM_ORG_ID}.api-facade-metadataapi -Dsonar.projectName='CXU Metadata API' -Dsonar.exclusions=**/*.xml,src/main/resources/*,src/main/java/pom.xml,src/main/java/com/oracle/cxunity/metadata/,src/main/java/com/oracle/cxunity/metadata/model/*,src/main/java/com/oracle/cxunity/metadata/service/ -Dsonar.junit.reportPaths=target/surefire-reports/ -Dsonar.sourceEncoding=UTF-8 -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml


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.
  • - this doesn’t do anything