Hi Team,
I unable to get the coverage in SonarQube for hybris application, I am able to generate coverage/report.xml.
updated the property file
sonar.coverage.jacoco.xmlReportPaths=/home/sonaradmin/report.xml
sonar.dynamicAnalysis=reuseReports
sonar.extensions=erkb2bservices,erkb2bcore
sonar.analysis.mode=preview
sonar.issuesReport.html.enable=true
I am unable to see the coverage in SonarQube, I tried in Manual import from SonarQube but still no luck please help me on it.
@Colin Please help me on it , It is blocking us to move to next level
Colin
(Colin)
June 30, 2022, 8:08am
5
Hey there.
I would suggest reviewing this guide on the generation / import of JaCoCo coverage reports.
Importing JaCoCo coverage report in XML format
Version 5.12 of our SonarJava analyzer deprecated use JaCoCo’s binary format (.exec files) to import coverage. This binary format is internal to the JaCoCo project, and as such there are no guarantees for backward compatibility, so it should not be used for integration purposes.
As a replacement, we developed the sonar-jacoco plugin, which imports JaCoCo’s XML coverage report, and this is the preferred option now. In this guide, I will describe how…
If you still face issues, feel free to upload any relevant analysis logs here, if you’re unable to find clues in the logs yourself.
Hi @Colin ,
we are trying to get the coverage for Java hybris application by using ANT(build.xml)
could you please guide me how to get the coverage and publish the coverage report in SonarQube.
@Colin Please help me on my issue we are blocked with coverage in hybris with ant
@Colin Could you please share the steps generate SonarQube coverage for sap hybris application with ant for sap hybris it’s java based.
I tried some other ways but not working
could you please provide steps to generate Jacoco coverage with ant tool in azure devops
As of now we don’t have logs to publish , please provide steps to get the coverage
Colin
(Colin)
November 2, 2022, 9:34am
11
Hey there.
SonarQube only reads coverage reports, it isn’t involved in generating them.
White
(White Seeker)
January 17, 2023, 12:55pm
12
I’m facing similar issue, is it fixed for you?