i try to get the coverage from 2 application servers via tcp dump client, following http://www.intothepool.org/2012/04/jacoco-tcp-server-setup-and-reporting.html. and using marc's example dump code at: http://www.eclemma.org/jacoco/trunk/doc/examples/java/ExecutionDataClient.java.
i'd have two questions:
1. in the documentation i cannot see how often one should start this dump. and how should the dump file handling be? a new file for every run? or it anyway dumps always since start of the server?
2. when listening to 2 different servers, one should store than 2 different dump files even if its the same code base which is running on the application server?
rupert.
if it makes any sense i'd like to get this into the gradle jacoco plugin, but i have zero experience with it: http://www.gradle.org/docs/current/userguide/jacoco_plugin.html
there should probably a task to collect the data from an agent after the test run. then there should be a task to merge the files. and then one to produce a report.
i am very unsure what configuration parameters should be there:
* a list of urls to collect from so one is able to cover multi tier or clustered setups
* file name(s) to store the data. the original question was directed here: if one calls the dump data again what does it do? it reads everything again? if yes, then it is sufficient to just have one file for one agent which is overwritten.
* exclusions/inclusions to somehow restrict it to the java packages under development and not get all.
rupert.
rupert.
Hi Marc,
I got a question about this here. I'm using tcpclient mode. do you know before I do a dump request, on app server, where are the data stored? in the memory or on the disk? as we're running a great number of auto-test in parallel, the data size will increase quickly. If it's stored in memory before dumping, I'm concerned about the performance as well as a proper dump frequency.
Luka