Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43267

JaCoCo plugin2.2.0 shows 100% coverage for 0 classes

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: jacoco-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.46.1 on SLES 11.4
    • Similar Issues:

      Description

      Rolling back to plugin 2.1.0 and rerunning my job shows again the real coverage and find all of my classes. Have not changed any plugin properties.

      Path to exec files: */*.exec

      Path to class directories: **/artefakte/build/lib/ikb (there are a lot of *.jars, no direct *.class files)

      Path to source directories: **/src

        Attachments

        1. 2.1.0.png
          2.1.0.png
          32 kB
        2. 2.2.0.png
          2.2.0.png
          26 kB
        3. jenkins-jacoco-chart.png
          jenkins-jacoco-chart.png
          21 kB

          Activity

          Hide
          zolv Radek A added a comment - - edited

          Same here for version 2.2.1

          Interesting part:

          We have 2 builds:

          • AAA uses Gradle 4.4.1, Java 8 and JaCoCo gradle plugin version 0.8.0+ - DOESN'T WORK
          • BBB uses Gradle 2.4.1, Java 7 and JaCoCo gradle plugin version 0.8.0+ - WORKS CORRECTLY

          As mentioned above, the one with gradle version 4.4.1 (recently updated) shows 100% code coverage with 0 lines of code. However, checking workspace files, everything looks fine: build/reports/jacoco/test/html contains all generated reports. Also exec files are available in build/jacoco/test.exec.

          We tried also gradle jacoco plugin 0.7.6+ but same result (doesn't work for AAA, works fine for BBB).

          Show
          zolv Radek A added a comment - - edited Same here for version 2.2.1 Interesting part: We have 2 builds: AAA uses Gradle 4.4.1, Java 8 and JaCoCo gradle plugin version 0.8.0+ - DOESN'T WORK BBB uses Gradle 2.4.1, Java 7 and JaCoCo gradle plugin version 0.8.0+ - WORKS CORRECTLY As mentioned above, the one with gradle version 4.4.1 (recently updated) shows 100% code coverage with 0 lines of code. However, checking workspace files, everything looks fine: build/reports/jacoco/test/html contains all generated reports. Also exec files are available in build/jacoco/test.exec. We tried also gradle jacoco plugin 0.7.6+ but same result (doesn't work for AAA, works fine for BBB).
          Hide
          tkleiber Torsten Kleiber added a comment - - edited

          Further reproducible here with Jacoco Plugin 3.0.1 and Jenkins 2.121.2 on SLES 11.4.
          Any progress on this issue?

          Show
          tkleiber Torsten Kleiber added a comment - - edited Further reproducible here with Jacoco Plugin 3.0.1 and Jenkins 2.121.2 on SLES 11.4. Any progress on this issue?
          Hide
          michaelkotten Michael Kotten added a comment -

          I guess that's because of https://issues.jenkins-ci.org/browse/JENKINS-29117. Seems that there are no classes found so the coverage is 100% as claimed by the feature request. Question is, why are there no classes found?

          Show
          michaelkotten Michael Kotten added a comment - I guess that's because of https://issues.jenkins-ci.org/browse/JENKINS-29117 . Seems that there are no classes found so the coverage is 100% as claimed by the feature request. Question is, why are there no classes found?

            People

            • Assignee:
              ognjenb Ognjen Bubalo
              Reporter:
              tkleiber Torsten Kleiber
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: