Jacoco + jenkins + maven

43 views
Skip to first unread message

Rajeev A R

unread,
Aug 17, 2015, 7:31:40 AM8/17/15
to JaCoCo and EclEmma Users
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?

Evgeny Mandrikov

unread,
Aug 28, 2015, 10:20:20 AM8/28/15
to JaCoCo and EclEmma Users
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages