JACOCO exec | Server Restart |

86 views
Skip to first unread message

ashish.bh...@gmail.com

unread,
Aug 17, 2017, 5:06:50 AM8/17/17
to JaCoCo and EclEmma Users
Hello Team,

I have configured JACOCO agent in my server like this :

-javaagent:/tmp/ashishb/jacocoJar/jacocoagent.jar=destfile=/tmp/ashishb/jacocoexec/jacoco.exec,output=tcpserver,address=oipp310486.in.syngery1.com,port=6300,classdumpdir=/tmp/ashishb/ProjectData/bin,includes=com.ofss.bb.cz.pp*

Now :

Program ExecutionData.java creating exec and ReportGenerator.java creating coverage report properly.

Issue:

While running smoke ( certain test cases) on server (oipp310486.in.syngery1.com)
I need to restart the server...
e.g.
Competed 80% test cases, to complete 100% need to restart the server.


Q. How can i persist old exec data after restart also ?

Marc Hoffmann

unread,
Aug 17, 2017, 7:27:19 AM8/17/17
to jac...@googlegroups.com
Hi,

as you have configured the agent to act as a tcpserver you probably have
some client that dumps the data at the end of the test run. So you need
to request another dump before you restart the server.

If you use output=file the JaCoCo agent will append execution data at
every proper shutdown of the JVM.

Regards,
-marc
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages