Dedicated annotation for skipping class/method

17 views
Skip to first unread message

goog...@gmail.com

unread,
Jan 9, 2020, 1:31:57 PM1/9/20
to JaCoCo and EclEmma Users
Hi

our use of jacoco makes it necessary to be able to mark some code as irrelevant for coverage scanning. We figuered, that in org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/AnnotationGeneratedFilter.java any annotation named "Generated" has exactly that effect. However, we do not want to mark non-generated code with @Generated as it would be semantically wrong.
What we did is to add a condition for an annotation named "NoCoverage", so that we get the desired behavior.

Are you interested in a respective PullRequest, or are we doing it wrong?

cu uwe
Reply all
Reply to author
Forward
0 new messages