I am setting up a code coverage for my project which follows a micro service architecture with services deployed as docker containers. I have setup an individual docker container running ExecutionDataServer from the examples. Now my dilemma is how to make the jacoco agent running in tcpclient mode publish to this server.
As far as I understand that jvm has to get terminated so that the execution data is dumped. I tried several ways of shutting down the docker containers but I do not see any data getting written to the server. Any insights into this is appreciated.
Following is the configuration in each of the microservices
-javaagent:/lib/org.jacoco.agent-0.7.8runtime.jar=output=tcpclient,address=jacocoserver,port=6300
address attribute is the hostname of the container running ExecutionDataServer.
Thanks,
Revanth.