- javaagent:/home/phani/jacocoagent.jar=destfile=/home/users/adkumar/dascoverage.exec
Ran my tests. It created .exec file after stopping the tomcat. When I open the report in Eclemma it shown the coverage as 0%. I am not sure what I am missing here. Can someone help me to get the code coverage for my server code?Thanks.RegardsPhani
Hi Phani,
this question has been asked many times here before, also documentation should give you a starting point.
1) Execution data is written only at a proper shutdown of JaCoCo. Please click on the "Session" link in the HTML classes. Are you classes listed?
2) If the classes are listed but not linked and the corresponding report shows now coverage you need to make sure you use the exact same classes at runtime than at report generation time.
Regards,
-marc
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c2fc97e5-4779-434a-9c78-71822af73fba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.