# Build cache does not cache test runs

**URL:** <https://discuss.gradle.org/t/build-cache-does-not-cache-test-runs/25600>\
**Category:** Help/Discuss\
**Created:** [January 26, 2018, 12:56pm UTC](https://discuss.gradle.org/t/build-cache-does-not-cache-test-runs/25600 "2018-01-26T12:56:34Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Lance](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/lance/32/787_2.png) [@Lance](https://discuss.gradle.org/u/Lance)\
**Post date:** [December 6, 2018, 7:29am UTC](https://discuss.gradle.org/t/build-cache-does-not-cache-test-runs/25600/13 "2018-12-06T07:29:15Z")

</div>

Just chiming in here without fully understanding the problem. I see mention in [the linked post](https://discuss.gradle.org/t/do-not-cache-if-condition-matched-jacoco-agent-configured-with-append-true-satisfied/23504/2?u=sebastian_schuberth) regarding JaCoCo and `append=true`

Is it possible to

1. Have a separate JaCoCo exec file for each test task
2. Set `append=false` for each
3. Use a [JacocoMerge](https://docs.gradle.org/current/dsl/org.gradle.testing.jacoco.tasks.JacocoMerge.html) task to merge the multiple exec files into one
4. Generate a [JacocoReport](https://docs.gradle.org/current/dsl/org.gradle.testing.jacoco.tasks.JacocoReport.html) from the merged exec file

---

_[View the full topic](https://discuss.gradle.org/t/build-cache-does-not-cache-test-runs/25600)._
