On Wednesday, March 6, 2019 at 11:00:00 PM UTC+1, jk wrote: 
>
> The contents of the jacoce.exec file are cryptice looks like its a 
> proprietary format , adding a screenshot here
>

Please note for future that binary files can be sent as attachments.

On Wednesday, March 6, 2019 at 11:22:13 PM UTC+1, jk wrote:
>
> One more data point, didn't mention it in my last email. In Jacoce session 
> i don't see the webapp specific packages but generic java packages
>

Thus as was said in 
https://groups.google.com/d/msg/jacoco/DZNqIGaoPKQ/9m5btqlECQAJ

classes not listed on this page either have not been executed or have not 
been seen by the JaCoCo agent

And Jitendra is right - in your current setup classes of application are 
not seen by agent, because JVM that executes application doesn't use agent

On Thursday, March 7, 2019 at 5:00:16 AM UTC+1, Jitendra Kumar wrote:
>
>
> Edit your setup.sh file as below:
>
> JACOCO_OPTS=" -javaagent:<jacoco 
> path>/jacoco/lib/jacocoagent.jar=destfile=<jacoco 
> path>/jacoco/jacoco.exec,append=true,includes=a.b.c.d.*"
>
>  
>
> CATALINA_OPTS="${CATALINA_OPTS} ${JACOCO_OPTS}"
>
>
> set to Catalina opts not in java opts: why? check below link.
>
>
> "
> https://stackoverflow.com/questions/11222365/catalina-opts-vs-java-opts-what-is-the-difference
> "
>

Nice catch, Jitendra !

Please note that specification of "append=true" is redundant, because this 
is default.
And please be careful with option "includes", because it limits scope of 
classes that will be processed by agent, and it also has good default value 
"includes=*".
See https://www.jacoco.org/jacoco/trunk/doc/agent.html


Regards,
Evgeny

-- 
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/8c463027-11c9-4ba0-8cc2-56c57ae485eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to