Exclude classes by pattern from report using JAVA API

29 views
Skip to first unread message

yev...@gmail.com

unread,
Nov 11, 2016, 11:09:34 AM11/11/16
to JaCoCo and EclEmma Users
Is it possible to exclude classes while generating report (html) using jacoco apis?

Wasn't able to find...

Thanks

Marc R. Hoffmann

unread,
Nov 11, 2016, 12:06:40 PM11/11/16
to jac...@googlegroups.com
Hi,

absolutely: Just supply ony the class files you want to see in the
report to Analyser.analyse().

Regards,
-marc

yevsh

unread,
Nov 11, 2016, 12:11:42 PM11/11/16
to JaCoCo and EclEmma Users

you mean analyzeClass(...) method?
because there is no analyse method in Analyser class.

Marc R. Hoffmann

unread,
Nov 11, 2016, 12:18:33 PM11/11/16
to jac...@googlegroups.com
Hi,

yes, analyzeClass() of course. analyzeAll() will also work as long as
you supply only the relevant class files individually.

Regards,
-marc

yevsh

unread,
Nov 11, 2016, 12:21:58 PM11/11/16
to JaCoCo and EclEmma Users
After going over the sources I believe I will have to override analyzeAll(File file) method as my input is a folder of classes (with subfolders), and this method is recursive, so my logic should go there...
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages