javaagent dumponexit option

190 views
Skip to first unread message

artko...@gmail.com

unread,
Aug 25, 2014, 12:35:58 PM8/25/14
to jac...@googlegroups.com
Hi,

it's clear how default value (dumponexit=true) works, but what is expected behavior if set to false? I thought it should dump data in real-time, but got no output at all.

Marc R. Hoffmann

unread,
Aug 25, 2014, 4:40:39 PM8/25/14
to jac...@googlegroups.com
Hi,

good question: if dumponexit==false no coverage data is written at all
by the agent, unless it is requested through the remote protocol or the
runtime API. JaCoCo does not support "real time" coverage tracing.

Cheers,
-marc

Luv Ahoo

unread,
Mar 17, 2015, 9:47:42 AM3/17/15
to jac...@googlegroups.com
Hi Marc,

Is there any sample on how to use the remote protocol to ask for dump?
Is it possible to ask for dump in the ReportGenerator.java file?

Thanks for your help!

Marc R. Hoffmann

unread,
Mar 18, 2015, 11:43:06 PM3/18/15
to jac...@googlegroups.com
Hi Luv,

there is: http://www.eclemma.org/jacoco/trunk/doc/examples/java/ExecutionDataClient.java

Basically you replace the body of ReportGenerator.loadExecutionData() with the example code above.

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