First of all our recommendation is to always use latest released version, 
which is as of today 0.7.9 and not 0.7.4.

Secondly as was described in this mailing list many times: JaCoCo always 
creates empty dump file at startup to guarantee that location is writable. 
Then it registers standard JVM Shutdown hook ( see 
http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
 
) that will write all collected information, but whose execution not 
guaranteed if JVM was not gracefully terminated. So the thing to check - is 
that application under test is terminated gracefully and not just killed.

Also be aware that there is JVM bug ( 
https://bugs.openjdk.java.net/browse/JDK-8154017 ) - when the main thread 
is in the interrupted state the JVM shutdown hooks are not properly 
executed. So also please make sure that main thread of application is not 
left in interrupted state.


HTH.

On Thursday, August 31, 2017 at 6:15:33 AM UTC+2, [email protected] 
wrote:
>
> On Friday, March 24, 2017 at 10:32:50 PM UTC+5:30, [email protected] 
> wrote:
> > Hi All, 
> > 
> > Goal: Collect the codecoverage for selenium webdriver functional tests.
> > 
> > Myself configured jacoco-0.7.4.201502262128.zip with tomee-plus 1.72. 
> > 
> > Data file is not growing when i stopped the service. Let me am i missing 
> anything here. 
> > 
> > 1. Copied jacocoagent.jar file to tomee/lib folder
> > 2. Started with following javaoptions
> > 
> -javaagent:<path>\jacocoagent.jar=destfile=<path>\jacocoST.exec,append=false
> > 3. run some selenium webdriver test cases or manual tests. 
> > 4. Stopping the service.
> > 
> > Still my jacocoST.exec file says 0KB. Can someone confirm am i missing 
> anything here?
> > 
> > Regards,
> > Mahesh K
>
> did you get splution of this problem ? i am also facing same issue ...
>
>

-- 
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/8297a85c-81d3-45e6-a53e-b615896a7a96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to