jacoco xml report - no data presented

25 views
Skip to first unread message

Katy Dayan

unread,
Oct 11, 2021, 12:15:18 PM10/11/21
to JaCoCo and EclEmma Users
Hello,

I have application system tests run w/ jacoco-agent to collect code coverage.
This run creates jacoco.exec file and in this file I see the  specific class data collected: 

java -jar /usr/src/ci/code-coverage/org/jacoco/org.jacoco.cli/0.8.7/org.jacoco.cli-0.8.7-nodeps.jar execinfo /usr/src/<module>/coverage/jacoco-it.exe 
[INFO] Loading exec file /usr/src/<module>/coverage/jacoco-it.exe. 
CLASS ID HITS/PROBES CLASS NAME
...
 194c08282e83af99 11 of 34 com/bigid/scanner/presto/PrestoConnection
...

However once I run report, this class data is not part of the created xml and as result of it is not presented in the sonarqube server.
I have to notice that other classes are present in the xml report and sonar-qube server.
Here is the example of the report generation command:

java -jar /usr/src/ci/code-coverage/org/jacoco/org.jacoco.cli/0.8.7/org.jacoco.cli-0.8.7-nodeps.jar report /usr/src/<module>/coverage/jacoco-it.exe --classfiles ... --sourcefiles ... --xml /usr/src/<module>/coverage/jacoco-it.xml 

There is no any related for this class warning/error during report generation.
Any hint how to solve/start to debug this issue?

Thanks and Best regards,
Katy Dayan


Reply all
Reply to author
Forward
0 new messages