Hi all,
I had configured to integrate jacoco with Jenkins to get the code coverage. However I only got the line of codes but never got the line of codes covered.
In the setenv.sh of tomcat I have defined something like this,
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/usr/local/oms-refund-tomcat/lib/jacocoagent.jar=output=tcpserver,append=true,dumponexit=false,classdumpdir=/usr/local/oms-refund-tomcat/classes-cov/,includes=com/test/poms/**,address=*"
I saw that my tomcat was shutting down forcefully because of which I feel that the code coverage data was never generated. Having this issue, I planned to shift to tcpserver output.
Here I see the port 6300 is listening. I tried to do nc on my server on port 6300 and tried to redirect it to a exec file but nothing was generated. I saw somewhere that we have to request for the dump in case of tcpserver using ant/maven.
I am using maven. How can I request for dump?