Lombok filter

94 views
Skip to first unread message

drack...@gmail.com

unread,
Aug 25, 2017, 9:06:06 AM8/25/17
to JaCoCo and EclEmma Users
Hello there,
I'm happily using EclEmma but the only thing I miss is properly make it ignore generated methods from Lombok: I see on the Jacoco changelog that this feature was included recently but I still can't figure out if there is a way to configure EclEmma to use it.

I checked that Lombok is adding the @lombok.Generated annotation to my bytecode.
Anyone that succeeded in making it work?

Thank you in advance,
Matteo

Marc R. Hoffmann

unread,
Aug 25, 2017, 9:28:09 AM8/25/17
to jac...@googlegroups.com
Hi Matteo,

this feature is not yet released in JaCoCo, only in SNAPSHOT builds. See
change log.

As soon as we have a JaCoCo release we will update EclEmma.

Regards,
-marc

drack...@gmail.com

unread,
Aug 25, 2017, 9:56:36 AM8/25/17
to JaCoCo and EclEmma Users

Thank you for your reply.
Just to make sure, is there any way to make EclEmma use a different Jacoco version manually?

Marc R. Hoffmann

unread,
Aug 25, 2017, 10:11:07 AM8/25/17
to jac...@googlegroups.com
The only way I know is to build your own version. Here is our Git repo:
https://github.com/eclipse/eclemma

"mvn clean install" should do the job. You need to bump the JaCoCo
version and use our SNAPSHOT repository, see:
http://www.jacoco.org/jacoco/trunk/doc/repo.html

Regards,
-marc

drack...@gmail.com

unread,
Aug 25, 2017, 10:22:16 AM8/25/17
to JaCoCo and EclEmma Users

Thank you! I'll try it next week. One last question, if I may ask: what is the most correct way to exclude single classes from the coverage reports? I read in the documentation that "Coverage Runtime" section in eclipse preferences does not serve this purpose, but the "Default Scope" section does only allow me to set a path matching pattern, which is not usable if you have hundreds of classes you want to cover and just 2-3 classes that you want to exclude.

Marc R. Hoffmann

unread,
Aug 25, 2017, 10:30:13 AM8/25/17
to jac...@googlegroups.com
This is not supported by EclEmma. You can only include/exclude on
package fragment root level.

If you use one of our build tool integrations you get a finer control.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages