different requirement

13 views
Skip to first unread message

abhigu...@gmail.com

unread,
Sep 5, 2015, 2:46:48 PM9/5/15
to JaCoCo and EclEmma Users
Hi,
We are doing daily code coverage in our tomcat based project, using "-javaagent:/var/lib_jacoco/jacocoagent.jar=destfile=/var/jacoco.exec,append=true,dumponexit=true,output=file" as option. Below are details:-
I have A.java, in version 1.0, it have 10 lines and during 1st round of testing I covered line number 6,7 and 8. When I generated the coverage report it shows perfect results .
But when I received new build of A.java as version 1.1, it got added 5 more lines and during 2nd round of testing I covered line number 11,12 and 13.
When I generated the coverage report using latest exec,class and java of version 1.1, it shows only line number 11,12 and 13, as covered.
But When I generated the coverage report using latest exec,old class and old java of version 1.0, it shows only line number 6,7 and 8, as covered.
But I want when generate the coverage report using latest exec,class and java of version 1.1, it shows both iteration coverage, means it must show line number 6,7,8,11,12 and 13, as covered.
is this possible?

Thanks
Abhishek

Marc Hoffmann

unread,
Sep 7, 2015, 9:33:29 AM9/7/15
to jac...@googlegroups.com
Hi Abhishek,

unfortunatelly it is not possible to merge coverage data of different
versions of classes.

Regards,
-marc
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages