Coverage representation in Eclipse vs HTML

20 views
Skip to first unread message

Abhay Hegde

unread,
Jan 17, 2021, 2:46:49 AM1/17/21
to JaCoCo and EclEmma Users
Hi,
I have obtained the jacoco.exec using the jacocoagent by following the discussion - https://groups.google.com/g/jacoco/c/0QkOV5u1w6Y/m/Aept20V_AgAJ

I did 2 things from there on:
1. Generated an HTML coverage report using jacococli.jar
2. Imported the jacoco.exec file into Eclipse using ECLemma plugin.  

Step 1) gave me a report like below:
html_step1_report.JPG

Step2) gave a coverage report within Eclipse as below:
eclipse_2_coverage.JPG

1. Why does the report show different metrices ?
2. Is there a way to obtain an overall(total) code coverage of all the sub-projects?

Regards
Abhay

Evgeny Mandrikov

unread,
Jan 21, 2021, 6:05:25 AM1/21/21
to JaCoCo and EclEmma Users
On Sunday, January 17, 2021 at 8:46:49 AM UTC+1 Abhay Hegde wrote:
Hi,
I have obtained the jacoco.exec using the jacocoagent by following the discussion - https://groups.google.com/g/jacoco/c/0QkOV5u1w6Y/m/Aept20V_AgAJ

I did 2 things from there on:
1. Generated an HTML coverage report using jacococli.jar
2. Imported the jacoco.exec file into Eclipse using ECLemma plugin.  

Step 1) gave me a report like below:
html_step1_report.JPG

Step2) gave a coverage report within Eclipse as below:
eclipse_2_coverage.JPG

1. Why does the report show different metrices ?

Most likely because of different compilers - Eclipse uses its own compiler for Java and so produces class files that are different from the ones for which execution data was obtained.
Reply all
Reply to author
Forward
0 new messages