Thanks a lot .. so i did a graceful terminate of the JVM and got to see 
the code coverage.. 


On Tuesday, 13 March 2018 16:01:52 UTC+5:30, Evgeny Mandrikov wrote:
> Hi,
> JaCoCo creates an empty file at startup to ensure that location is 
> writable.
> And all the information is written at the JMV shutdown using 
> https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
> So please make sure that you gracefully terminate JVM.
> On Tuesday, March 13, 2018 at 7:32:26 AM UTC+1, Harish Gautham wrote:
>> Hi
>>     Am trying to get  jacoco code coverage for application running on 
>> jetty server[Docker Image]
>>  We have docker container for our application and we pull the image of 
>> that application [running using jetty server] .. 
>> Am trying to get the code coverage configured for our application.. 
>> however i see the jacoco.exec getting generated with no data in it...
>> this is how i start the jetty server  with the jacocoagent mentioned in 
>> the start command....
>> /usr/bin/java -server -Xmx256m 
>> -javaagent:/opt/jacocoagent.jar=destfile=/opt/jacoco.exec 
>> -Djava.security.debug=off 
>> -Dipsao.security.jps.config=/opt/ml/config/wallets/sim_jps-config-jse.xml 
>> -Dipsao.ml.config=/opt/ml/config/local-harve.config 
>> -Dipsao.pid.config=/opt/ml/config/local-harvester.config 
>> -DtemplateRecFile=/opt/ml/config/template_re.txt 
>> -Djava.util.logging.config.class=ipsao.core.ojdl.logging.LoggingConfiguration
>> -Dipsao.core.ojdl.logging.config.file=log/harve-logging.config -classpath 
>> /opt/ml/services/catalog-jetty/lib/Data-jetty-0.1.0-SNAPSHOT-jar-with-dep.jar
>> ipsao.dc.jetty.DCJetty -daemon
>> i notice that a empty jacoco.exec is getting generated and i do not see 
>> any coverage on stoping the server after running some tests...
>> Thanks
>> Gautham

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to