Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3926

Total code coverage does not match class coverage when using lombok.addLombokGeneratedAnnotation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • maven - codecoverage
    • None

    Description

      Project:

      • maven
      • jacoco report
      • lombok

      When activating `lombok.addLombokGeneratedAnnotation` in a project in order to prevent jacoco from marking the generated methods as untested the total test coverage in NetBeans does not match with the class coverage.

      I guess the problem is caused due the fact that jacoco does not shoe these classes in their reports. Since NetBeans does not use the reports list of classes there's a mismatch between total test coverage and class test coverage.

      The attached project can be used to reproduce the problem.

      Attachments

        1. image-2020-02-28-14-33-04-551.png
          31 kB
          Benjamin Asbach
        2. netbeans-integrations-code-coverage.zip
          8 kB
          Benjamin Asbach

        Activity

          People

            Unassigned Unassigned
            asbachb Benjamin Asbach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: