Hi Marc, Thank you for a swift response.
I am generating report using jacoco1.exec separately and using jacoco2.exec separately. These reports are generated on two different independent VMs. Had they been generated on one VM, I could have understood it could have combined the coverage. But here we are generating in two separate VMs. Regards, Ashish On Friday, August 2, 2024 at 12:15:17 PM UTC+5:30 Marc R. Hoffmann wrote: > 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 <[email protected]> > 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 [email protected]. > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/97be87fa-82e6-4f18-bbef-36c3bf36ede5n%40googlegroups.com.
