You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using "lombok.addJavaxGeneratedAnnotation = true " is not producing the desired effect of having generated methods have the "@lombok.Generated" annotation. The delomboked files show the annotation is "@java.annotation.Generated("lombok")" instead. This annotation is not propagated to the CLASS so post-test processors like JaCoCo are unable to exclude the generated classes and method from the coverage calculation.
To Reproduce
Attaching a small maven-based project. Invoking "mvn clean test" should produce the following:
the delomboked files in the "delomboked" directory
the jacoco report in target/site/jacoco/index.html
Expected behavior
All Lombok generated methods should be skipped in the JaCoCo coverage report.
Version info (please complete the following information):
Tested with lombok v1.8.10 and lombok-maven-plugin v1.8.10.0
Additional context
The test cases in the attached zip file has the @test disabled for testing purposes. If those are enabled, only the generated methods for equals, hashCode, toString, and canEqual are not covered since those were not invoked by the included tests. test-project.zip
The text was updated successfully, but these errors were encountered:
Describe the bug
Using "lombok.addJavaxGeneratedAnnotation = true " is not producing the desired effect of having generated methods have the "@lombok.Generated" annotation. The delomboked files show the annotation is "@java.annotation.Generated("lombok")" instead. This annotation is not propagated to the CLASS so post-test processors like JaCoCo are unable to exclude the generated classes and method from the coverage calculation.
To Reproduce
Attaching a small maven-based project. Invoking "mvn clean test" should produce the following:
Expected behavior
All Lombok generated methods should be skipped in the JaCoCo coverage report.
Version info (please complete the following information):
Additional context
The test cases in the attached zip file has the @test disabled for testing purposes. If those are enabled, only the generated methods for equals, hashCode, toString, and canEqual are not covered since those were not invoked by the included tests.
test-project.zip
The text was updated successfully, but these errors were encountered: