Any way to seperate jacoco.exec report for different executions ?

32 views
Skip to first unread message

hsen...@gmail.com

unread,
Dec 18, 2019, 3:20:09 AM12/18/19
to JaCoCo and EclEmma Users
Hi,

My application is using JBoss and the way Jacoco is integrated is integrating Java Agent inside start.bat file. Our scenario is that Jenkins runs some particular test suites which itself comprises of many UI, SoapUI, Junit tests. The end report is very big and hard to segregate on basis of test suites/tests. One way I thought to deal with this is to make append parameter false, but this would require major changes from Jenkins side, separating thousand of tests into Jenkins jobs. I also considered to hack a separate custom code coverage tool but it will take time and god knows the risk behind instrumentation. Could you suggest an efficient way to achieve this ?

Thanks,
H

Marc Hoffmann

unread,
Dec 18, 2019, 8:00:06 AM12/18/19
to JaCoCo and EclEmma Users
Hi,

JaCoCo has no idea about your test suites. In any case you need to trigger execution data dumps after each test suite. The typical way to do this is to run the JaCoCo agent in tcpserver mode and request dumps after each test suite (and generate a separate report of course).

Regards,
-marc


--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/8c9288c8-d9b8-4edc-9e35-8d5a991f1327%40googlegroups.com.

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