Hi Ashish,

depending how you generate the report this might be by design:

When you create the reports separately, one using jacoco1.exec, the other 
report using jacoco2.exec only, you should see different figures.
When you create the reports in one run with both jacoco1.exec and jacoco2.exec 
coverage data will be merged and you will see the combined coverage.

So it depends on how you create the reports.

Regards,
-marc


> On 2. Aug 2024, at 07:06, Ashish Ranjan Sinha <ashishranjan2...@gmail.com> 
> wrote:
> 
> Hi Everybody,
> 
> I am using runtime instrumentation with the JaCoCo agent in the JVM and 
> running different JUnit tests on two independent VMs in a multi-module 
> project. The classfiles in these two VMs are the same. I am using JaCoCo 
> 0.8.11 on each VM, with each VM storing its own copies of jacocoagent.jar and 
> jacococli.jar. The goal of running two different VMs with the same classfiles 
> is to achieve parallelism and reduce overall execution time. The execution 
> data is stored with the names jacoco1.exec and jacoco2.exec, respectively. 
> However, when generating and comparing the reports from these two VMs, I 
> observe that every figure in each column is identical. Every value for missed 
> branches and coverage percentage is the same. I am confident that the JUnit 
> tests, even if they touch the same classfiles at times, should not display 
> identical values. I have tried using different execution data names and 
> cleaning the JaCoCo coverage cache, but the results remain unchanged.
> 
> Help would be much appreciated!
> 
> Regards,
> Ashish
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jacoco+unsubscr...@googlegroups.com 
> <mailto:jacoco+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/a08f70a8-bd49-4879-8945-8466dba58c43n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/a08f70a8-bd49-4879-8945-8466dba58c43n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/02B41300-3940-4732-9DBF-0165527CFD64%40mountainminds.com.

Reply via email to