Can I dump multiple exec files through Jacoco agent

258 views
Skip to first unread message

Imo

unread,
Aug 15, 2018, 6:03:21 PM8/15/18
to JaCoCo and EclEmma Users
Hi Jacoco team,

I am working with a web project running on a remote server, and I implement Jacoco in the project with maven. For the unit tests, I have already generate ut reports with the help of jacoco maven plugin. And the report can be viewed on the server side correctly.

Besides, I also have a automation test through restAPI on my local machine. In order to get coverage report of API test, I configured another jacoco agent running on the remote web server, so that I can dump the coverage report of the API tests also.

The two reports seem good now. The only problem is, can I dump the ut test report/exec file from the remote server to my local machine? I would love to merge these two into one and resolve it on my local machine.

Thanks for your time looking at my problem.

Marc Hoffmann

unread,
Aug 16, 2018, 7:02:03 AM8/16/18
to jac...@googlegroups.com
Hello,

to get a combined report you need to merge the exec files before you
create the report. To create this report you need all class files from
the client as well as from the server.

To get the exec file from the server there are two standard ways:

1) Copy the exec file created on the server with standard tools (http,
scp, ftp, file share ...)
2) Configure the JaCoCo agent in tcpserver mode and use the dump command
to retrieve exec files.

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