Hi,

that’s a interesting situation. Unfortunately annotations are not configurable.

Best regards,
-marc



> On 9. Sep 2025, at 18:19, Digitek <digitek.netw...@gmail.com> wrote:
> 
> Hello,
> 
> I’ve noticed that JaCoCo automatically excludes classes and methods annotated 
> with @Generated from code coverage reports.
> 
> In my project, however, I use a custom annotation whose name contains 
> "Generated", but it is 100% business/functional. It is not related to code 
> generation. Unfortunately, JaCoCo filters it out just like generated code, 
> even though I want it to be measured by coverage.
> 
> Is there a way to configure JaCoCo so that it does not exclude annotations 
> containing "Generated", or to whitelist my specific annotation so that the 
> annotated code is still included in the coverage report?
> 
> Thanks in advance for your help!
> 
> Best regards,
> 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> <mailto:jacoco+unsubscr...@googlegroups.com>.
> To view this discussion visit 
> https://groups.google.com/d/msgid/jacoco/13a5a98c-eb00-42fb-a720-bacc2bb8829dn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/13a5a98c-eb00-42fb-a720-bacc2bb8829dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/jacoco/F0E767EF-1D14-4A54-B764-C4879D2E1BBA%40mountainminds.com.

Reply via email to