excluding classes when dumping instead of when reporting

28 views
Skip to first unread message

lvhu...@gmail.com

unread,
Nov 6, 2019, 9:53:29 AM11/6/19
to JaCoCo and EclEmma Users
hi guys,

Is there a way to exclude some classes when dumping the .exec file, instead of at report time?

My scenario is that, I want to generate a combined report for A-api-test and B-unit-test. A-api uses an older version of B-sdk, so, when dumping for A, a.exec contains incorrect data of B-sdk, and b.exec contains the correct data of B-sdk. Thus, if I merge a.exec and b.exec together... I don't actually know what a+b.exec will contain about B-sdk... both the wrong data and the correct data? What will I get if I generate report from this a+b.exec?

So I guess the safe way is to exclude B-sdk when dumping for A. But how can I do this?

Thanks.
--huafeng
 

lvhu...@gmail.com

unread,
Nov 6, 2019, 8:30:24 PM11/6/19
to JaCoCo and EclEmma Users
Hi guys, anyone has any hints? Any hints will be high appreciated...
Thanks!
--huafeng

Marc Hoffmann

unread,
Nov 8, 2019, 4:38:58 AM11/8/19
to jac...@googlegroups.com

Hi Huafeng,

you can limit the scope with the excludes property of the JaCoCo agent.

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/eb218c12-d793-4961-8f7f-ef586448aa6a%40googlegroups.com.


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