|
From: Charalampos P. <cha...@gm...> - 2013-12-19 12:23:32
|
Hi cobertura community, The project that my team and I are working on requires remote collection of the coverage data without interrupting the running service (ie. not only collect data when JVM exits but while the application is running as well). For instance, it could be a server socket running on a separate thread on the application under test, accepting connections on a particular port, and upon receiving a coverage data collection request from a client, it would return the current coverage data. The client issuing the request to collect data on the other hand, would collect this coverage data from the server and merge them with existing local data (if any). Additionally, one other requirement that we have to fulfill is that after running a particular test, we need to collect the coverage data remotely (as described above) and then reset the counters for the next test. Overall, the flow should look like the following: time -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> client [start test 1] _________________________________ [end of test 1, get coverage data request and reset]------- [ merge received data with existing ones] --------------- [ start test 2] .....----> | | | | server ----------------------------------------------------------------------------- [send coverage data to client and reset current counters] --------------------------------------------------------------------------------------------------------> I would greatly appreciate any information as to to what degree I can fulfill the project requirements with the existing cobertura functionality and whether you think the effort to implement a server socket and the logic to send the coverage data remotely and reset existing counters would be significant (I took a look at the source code but I am not quite sure what needs to be done yet). Furthermore, any additional information regarding which files need to be modified in order to reset the existing counters and what kind of synchronization is needed to access the coverage data before sending them remotely to the client, would be greatly appreciated. Kind Regards, Harry |