I am quite new to Jacoco and I am planning to integrate Jacoco code coverage tool with my java project which is running under Wildfly application server.
http://www.eclemma.org/jacoco/trunk/doc/agent.html .
I went through the given documentation added Jacoco agent (on the fly instrumentation) with my run script as a JVM parameters.
JAVA_OPTS="$JAVA_OPTS -javaagent:E:/jacoco/jacocoagent.jar=destfile=E:/jacoco/jacoco.exec,includes=*,append=true
Once I run this application , i can see jacoco.exec get generated with 0KB.
I explored further and found that
File System: At JVM termination execution data is written to a local file.
I did not understand clearly what exactly "JVM termination" means?
Is it shutting down the application server? if so, in my case exiting application server is not an option.
I would appreciate any help in this regard.
Thanks.
JT