Classes with mostly lombok annotations are excluded from report - Bug?

27 views
Skip to first unread message

benjami...@gmail.com

unread,
Mar 2, 2020, 10:10:44 PM3/2/20
to JaCoCo and EclEmma Users
Hello,

I'm unsure if this is a bug or an expected behavior. So before opening a issue on GitHub I want to hear your opinion.

Classes with only class members and lombok annotations are ignored completely in the final report.

e.g.

package it.impl.lomboco;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public class AWithLombok {

   
private final boolean bool;
}

The class is not reported at all which leads into problems [1] with tools relying on that report and synchronize the report based on an internal representation of the source tree.

I'd expect at least that the class is present in the report. Here [2] are some more testing. What do you think about that issue?

Thanks and greetings
Benjamin

Marc Hoffmann

unread,
Mar 3, 2020, 12:57:05 AM3/3/20
to jac...@googlegroups.com
Hi,

this is the expected behaviour: The class contains only generated code which is filtered out. Classes without code do not show up in the HTML report.

SInce release 0.8.3 they are contained in the XML report though: https://github.com/jacoco/jacoco/issues/806

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/090a2e0b-881a-47de-9655-7cbd5483b7f5%40googlegroups.com.

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