I am looking for a way to exclude specific class methods in my jacoco analysis. I am aware of the "excludes" property but that only applies to entire classes.
In my case i have generated methods that distort the coverage report so i would like to exclude them from the report.
JaCoCo supports now (in 2018, I know the question is from 2012) since version 0.8.0 (released on 2018/01/02) ignoring methods with annotion @lombok.Generated
.
So this can be used as a workaround also for other generated methods (if you are able to tag them this way) or even for "hand-written" methods if you really want (although this was probably not the intention of the authors).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With