Hi All, I think I found the probable reason for this issue - the reason could be below
**** this is the reply from Marc ********** ........The files contain multiple sessions, written one after the other. At some point a sessions is not dumped completely (some bytes missing at the end of a record). It looks like the JVM was terminated before the data could be written properly. E.g. killing a process might lead to this. **** this is the reply from Marc ********** To avoid this situation in future, I am taking a regular back up of the jacoco.exec file, using a work around. I am using a batch file, with the below lines to launch the eclipse ren "jacoco.exec" "jacoco - %date:/=-% %time::=-%.exec" PAUSE START eclipse.exe With this, every time I launch the batch file, the earlier jacoco file will be appended with the time stamp :-) Also, I am minimizing the risk of the jacoco.exec file getting bloated I would like to thank Marc for the time and advice PS: What I learnt: Do no kill the eclipse.exe file Thank you Aneesh Kumar On Wednesday, November 19, 2014 3:05:29 PM UTC+5:30, [email protected] wrote: > Hello All, > > We are evaluating Jacoco for our code coverage analysis. During our test > phase, we are generating the Jacoco.exec file to see the different > classes/Methods covered. At the end of the test phase, when I want to merge > the different Jacoco (from different testers), I observe that out of 6 > testers, for 2 testers, the Jacoco.exec file seems to be corrupted !!!! > > > I am not sure why this issue occurs > > What I tried till now to solve this: > > (1) I tried use the latest version of Jacoco and the older version - but this > did not help > > (2) I tried to re-copy the Jacoco from the eclipse installation and try - no > breakthrough > > (3) For the 2 testers, for whom the Jacoco.exec file was corrupted, I tried > to view the HTML report individually - I see this is not possible. For other > testers, its fine > > Points to Note > > (a) I did a single eclipse installation and then installed the software I am > testing. Then I made different copies of this folder, for the 6 testers who > are testing the software - And we observe that this issue is seen only for 2 > testers > > (b) 10 days back, when I tried to consolidate the jacoco.exec from 6 testers, > there was no issue > > It would be great if there is any help > > Many thanks in advance > > thank you > Aneesh Kumar -- 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/25d77e9d-b092-4a82-b9a7-8191440056c3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
