Possible checklist: - - check that server is up while dump is performed, i.e. that you don't face issue similar to https://groups.google.com/d/msg/jacoco/9UUoA28GvB8/vCPAz0E_CAAJ , JaCoCo 0.7.7 contains improvement which helps to detect such situation - https://github.com/jacoco/jacoco/pull/397 - check that you request dump after actual execution of code/tests - dump Ant task has option to "reset" data, so check that you don't accidentally do a dump multiple times, where one of them performs reset - check that you instruct JaCoCo agent to instrument proper classes, e.g. by completely removing "includes" option, also there is an option "classdumpdir" which can be used to see which classes were instrumented - etc
As a general advice in investigations of problems - use "divide and conquer" principle, i.e. remove factors from equation: - run locally instead of Jenkins to fully see and control the process - try to get coverage using "file" mode before trying "tcpserver" mode - run commands (application start , execution/tests, dump) separately and manually instead of fully automated Ant script - etc On Thursday, August 18, 2016 at 4:49:52 PM UTC+2, Anil Satya wrote: > > Hello Evgeny, > > Thanks a lot for the timely reply. As per your suggestion, these are > now my JAVA_OPTS: > > JAVA_OPTS=-javaagent:/tools/ > > jacoco-0.7.6/lib/jacocoagent.jar=includes=com.manh.*:com.logistics.*,destfile=/builds/v2017/lm/deployments/lm/tomcat-ora/distribution/coverage/lmjacoco.exec,output=tcpserver,port=65000 > > > *The connection refused exception is now gone, but the .exec file recieved > only 5 Bytes of data and the sessions tab shows this message:* > Sessions > > No session information available. > > No execution data available. > > > Also, the jenkins console had this: > > > dump-now: > [echo] entering dump part > [jacoco:dump] Connecting to MyTCPServer:65000 > [jacoco:dump] Dumping execution data to /builds/v2017/lm/deployments/ > lm/tomcat-ora/distribution/coverage/lmjacoco.exec > [jacoco:report] Loading execution data file /builds/v2017/lm/deployments/ > lm/tomcat-ora/distribution/coverage/lmjacoco.exec > [jacoco:report] Writing bundle 'Code Coverage Report from JaCoCo for LM' > with 3523 classes > [echo] /staging/2017/jenkin-slave/vci-wmlm-17/workspace/LM_2017_ > CI_LJO_DAILY_DEPLOYMENT > [copy] Copying 1 file to /staging/2017/jenkin-slave/ > vci-wmlm-17/workspace/LM_2017_CI_LJO_DAILY_DEPLOYMENT > [copy] Copying 7307 files to /staging/2017/jenkin-slave/ > vci-wmlm-17/workspace/LM_2017_CI_LJO_DAILY_DEPLOYMENT > > > Looks like I've come very close and I'm doing some small mistake. Can you > please help me out? > > -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/96bbefe3-a045-44e8-ae4f-ab315d7aeb73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
