I am using java agent for generating the code coverage for integration tests which is separated from the application under test and those test use external interface exposed by that application. I have executing java -javaagent:<path_to_jacocoagent>=destfile= .The idea here is to use a parameter A_RUNJAVA_EXTRA_VM_ARGS="javagent:<path_to_jacocoagent>jacocoagent.jar=destfile=jacoco.exec" where javaagent specifies the location of the jacocoagent.jar and destfile represents the place to put jacoco.exec. I am restarting my VM using a script on Jenkins and running the junits via jenkins. Even after the Junit test summary is generated, i donot see jacoco.exec file to be generated.
need some advice on what went wrong.
I have tried almost everything from my end. One thing which I believe can be the cause is jacoco agent not loaded properly by the java process becz when i use ps aux | grep java I donot get any output after the restart of the vm occures