Hi,

can you please double check that your annotation has the retention policy 
<https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/annotation/RetentionPolicy.html>
 CLASS or RUNTIME?

regards,
-marc


> On 24. Jun 2022, at 14:01, tuk <[email protected]> wrote:
> 
> I have added a filter via annotation to exclude a method from jacoco coverage 
> as mentioned here <https://stackoverflow.com/a/66918619>.
> 
> But when I see the jacoco html report for coverage I see the filtered method 
> being shown in red as not covered. Please check the attached screenshot. Is 
> this expected?
> 
> Jacoco Version - 0.8.8
> 
> <Screenshot 2022-06-24 at 5.30.07 PM.png>
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/05fca62e-c828-4bea-97ab-0f6b4c30560fn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/05fca62e-c828-4bea-97ab-0f6b4c30560fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <Screenshot 2022-06-24 at 5.30.07 PM.png><Screenshot 2022-06-24 at 5.30.07 
> PM.png>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/1EA78542-E8BD-48DF-A59C-BEAA20C74B74%40mountainminds.com.

Reply via email to