Hi, no, we’re not planning to support manual tagging. Exactly for the reason you give: Users are then expect to tag blocks, specific branches etc.
Only classes (i.e. class files) can be excluded during report generation. Regards, -marc > On 23. Sep 2020, at 14:21, Mark Palmer <[email protected]> wrote: > > 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] > <mailto:[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] >> <mailto:[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] >> <mailto:[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 > <https://groups.google.com/d/topic/jacoco/L8oYm3cRAw0/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[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] > <mailto:[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 > > <https://groups.google.com/d/msgid/jacoco/CA%2Bh%2BjVGAnbCHVmTz%3DVhjmppj4YKD9o2-HpRwCyZKB0mOWWoHdw%40mail.gmail.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/DC228622-16D3-4438-A69F-D70E2F929BB6%40mountainminds.com.
