# JacocoReport skipped when destinationPath used

**URL:** <https://discuss.gradle.org/t/jacocoreport-skipped-when-destinationpath-used/18353>\
**Category:** Bugs\
**Tags:** issue-resolved, gradle-3498\
**Created:** [July 5, 2016, 11:20am UTC](https://discuss.gradle.org/t/jacocoreport-skipped-when-destinationpath-used/18353 "2016-07-05T11:20:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaffelBaffel](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MaffelBaffel](https://discuss.gradle.org/u/MaffelBaffel)\
**Post date:** [July 5, 2016, 11:20am UTC](https://discuss.gradle.org/t/jacocoreport-skipped-when-destinationpath-used/18353/1 "2016-07-05T11:20:33Z")

</div>

Gradle Version: 2.14  
Operating System: Linux  
Is this a regression? If yes, which version of Gradle do you know it last worked for?  
2.13

This is how my build.gradle looks (simplified):

```
apply plugin: 'jacoco'
jacoco {
    toolVersion = jacocoVersion
}

task integTest(type: Test, group: 'verification') {
    jacoco {
        append = false
        destinationFile = file("$buildDir/tmp/jacoco/jacocoTest.exec")
        classDumpFile = file("$buildDir/tmp/jacoco/classpathdumps")
    }

    testClassesDir = sourceSets.integTest.output.classesDir
    classpath = sourceSets.integTest.runtimeClasspath

    reports.html.destination = file("$reports.html.destination/integ")
    reports.junitXml.destination = file("$reports.junitXml.destination/integ")
}

task jacocoIntegTestReport(type: JacocoReport, group: 'other') {
    reports {
        xml.enabled false
        csv.enabled false
        html.destination "${buildDir}/reports/jacoco/integ"
    }
    executionData integTest
    sourceSets sourceSets.main
}

```

This works in 2.13. There is a `jacocoTest.exec` being generated under build/tmp/jacoco.  
In 2.14 the `jacocoTest.exec` is generated under build/jacoco (ignoring my destinationFile path), which then results in a `skipped` jacocoIntegTestReport Task. If i delete the `destinationFile = file("$buildDir/tmp/jacoco/jacocoTest.exec")` line from the Extension everything works fine, with the exec file being generated under build/jacoco thought.

---

<div class="post-metadata">

**Author:** ![MaffelBaffel](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MaffelBaffel](https://discuss.gradle.org/u/MaffelBaffel)\
**Post date:** [July 5, 2016, 11:33am UTC](https://discuss.gradle.org/t/jacocoreport-skipped-when-destinationpath-used/18353/2 "2016-07-05T11:33:43Z")

</div>

In the Jacoco Plugin UserGuide of Gradle 2.14 there is a `destPath` mentioned, which i would have used there to override that path, thought i can’t use that, because its not a property of JacocoTaskExtension. Is this intended ?  
If yes, why is it then mentioned under `Table 61.2. Default values of the JaCoCo Task extension`

---

<div class="post-metadata">

**Author:** ![David\_Frank](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/david_frank/32/1448_2.png) [@David\_Frank](https://discuss.gradle.org/u/David_Frank)\
**Post date:** [July 5, 2016, 12:15pm UTC](https://discuss.gradle.org/t/jacocoreport-skipped-when-destinationpath-used/18353/3 "2016-07-05T12:15:28Z")

</div>

I also noticed this when going from 2.12 to 2.14. Also had it at tmp/jacoco previously. But I can live with the new location - so it doesn’t hurt me.

---

<div class="post-metadata">

**Author:** ![Stefan\_Wolf](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/stefan_wolf/32/5519_2.png) [@Stefan\_Wolf](https://discuss.gradle.org/u/Stefan_Wolf)\
**Post date:** [July 7, 2016, 4:21pm UTC](https://discuss.gradle.org/t/jacocoreport-skipped-when-destinationpath-used/18353/4 "2016-07-07T16:21:26Z")

</div>

Thank you for reporting. This will be fixed in 2.14.1-rc-2. See [GRADLE-3498](https://issues.gradle.org/browse/GRADLE-3498).
