Thanks for the reply. Is this something that is being looked into? Aside from classes/methods, I'm wondering if anyone has asked for suppressing coverage for "blocks" - like, annotations for start/stop.
While it is a misuse of Generated, that seems to be the only currently available option to suppress coverage for code. I know that classes/packages can be excluded from coverage via JaCoCo settings. Can methods be excluded the same way? I don't think I've ever seen this done before. -Mark On Wed, Sep 23, 2020 at 3:02 AM Marc Hoffmann <[email protected]> wrote: > Hi Mark, > > any annotation that contains “Generated” in its name will cause filtering > of the respective method or class. > > There is no specific annotation for manual tagging. > > As Evgeny once proposed a possible hack is to define a annotation called > “CoverageShouldNotBeGenerated” ;) > > Cheers, > -marc > > > > On 23. Sep 2020, at 00:10, Mark Palmer <[email protected]> wrote: > > > I saw some notes about the Generated annotation being used to suppress > coverage for generated code. > > Are there annotations for suppressing non-generated code? Or is the only > option exclude classes/methods from the report? > > Thanks. > > -Mark > > > -- > 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/527559e2-2d87-4603-95f7-0901889ac621n%40googlegroups.com > <https://groups.google.com/d/msgid/jacoco/527559e2-2d87-4603-95f7-0901889ac621n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "JaCoCo and EclEmma Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jacoco/L8oYm3cRAw0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/B1CFBB18-3E91-4E81-959F-1EA96D66DCD3%40mountainminds.com > <https://groups.google.com/d/msgid/jacoco/B1CFBB18-3E91-4E81-959F-1EA96D66DCD3%40mountainminds.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CA%2Bh%2BjVGAnbCHVmTz%3DVhjmppj4YKD9o2-HpRwCyZKB0mOWWoHdw%40mail.gmail.com.
