On Wed, Oct 14, 2020 at 9:47 AM Marc Hoffmann <[email protected]>
wrote:

> the @Generated annotation needs to be of retention CLASS or RUNTIME.
>
>  Hint: javax.annotation.Generated which ships with the JDK has retention
> SOURCE and does not work for JaCoCo.
>

In an addition to what was already written by Mark:
Please also note that we do not recommend to use annotations for manual
tagging - they are not designed for this,
as written on page https://github.com/jacoco/jacoco/wiki/FilteringOptions
A Generated annotation should only be used for code actually generated by
compilers or tools, never for manual exclusion.

On 14. Oct 2020, at 09:36, Brandon Largeau <[email protected]>
> wrote:
> Should I put a call to main in the JUnit test ?
>

Yes, you can do this.

Or your main method can be the only method of a class and so you can
exclude the whole class.

Or you can simply ignore the fact that the main method shows as uncovered.

-- 
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/CAEPFu6_dMsuQAb-JK3h2ghB9L3Y3ZibgC20Shzm%2BKHz97HVbGQ%40mail.gmail.com.

Reply via email to