Skip to content

JaCoCo exclusion

pawel_labaj edited this page Jul 20, 2023 · 4 revisions

Starting from JaCoCo 0.8.2, classes and methods annotated with annotation following properties:

  • the annotation name includes "Generated"
  • the annotation retention policy is RUNTIME or CLASS

are excluded from test coverage reports.

That's why @GeneratedWithAutoRecord annotation is added to all records generated by AutoRecord. In addition, when generating builder is enabled, addClassRetainedGenerated = true option is enforced in @RecordBuilder.Options which causes adding @RecordBuilderGenerated annotation to generated builders.

Clone this wiki locally