That same documentation will show how coverage numbers can be imported, using properties like sonar.jacoco.reportPaths, which you don’t seem to have defined here (which would explain why down the road you do not get coverage numbers imported in SonarQube).
Thank you Nicolas for helping. I have tried with provided reference and used below properties, profiles but still unit test results are not displaying in sonarqube.
Blocker Issues is greater than 0
Coverage on New Code Always is less than 80
Critical Issues is greater than 0
Duplicated Lines on New Code (%) Always is greater than 0
Open Issues is greater than
Reopened Issues is greater than 0
Skipped Unit Tests is greater than 0
Unit Test Duration is greater than
Unit Test Errors is greater than 0
Unit Test Failures is greater than 0
Unit Test Success (%) is greater than
Unit Tests is greater than
Quality Profiles
(CSS)
(Groovy)
(Java)
(JavaScript)
(Web)
Junit test reports are generating and able to publish in Jenkins but unable to import the Unit test results in SonarQube and not able to view.
Please let me know how to import unit test results in sonarqube. Does this supports only for java ?
This issue might have been solved now. But just to let everyone facing this issue. Unit test report is displayed with in the Coverage section.
But if you have executed test class using sonar.test.exclusions property in project’s pom.xml or .m2/config/settings.xml, unit test result will not displayed on Sonarqube UI