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

Not able to generate the coverage report with jenkins jacoco plugin 1.0.19 and jacoco 0.7.4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • jacoco-plugin
    • None

      What went wrong:
      Execution failed for task ':CoreServices:testCoverage'.
      > Unable to read execution data file C:\p4\nemo\ce\sw\4.0\team\services\CoreServices\build\jacoco\testDebugUnitTest.exec

       

       

      Code base:

      task testCoverage(type: JacocoReport) {
      reports

      { xml.enabled = true html.enabled = true }

      def mainSrc = "${project.projectDir}/src"
      sourceDirectories = files([mainSrc])

      def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
      def debugTree = fileTree(dir: "${project.buildDir.getPath()}/intermediates/classes/debug", excludes: fileFilter)
      classDirectories = files([debugTree])

      // executionData = files("${project.buildDir.getPath()}/jacoco/testDebugUnitTest.exec")
      executionData = fileTree(dir: project.projectDir, includes: ['**/*.exec'])

      testCoverage.dependsOn('testDebugUnitTest')

      }

            Unassigned Unassigned
            yamanuri123 Satya yamanuri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: