Jacoco无法读取Gradle生成中的执行数据文件

Jacoco无法读取Gradle生成中的执行数据文件,gradle,jacoco-plugin,Gradle,Jacoco Plugin,我正在使用Gradle 6.6.1和最新的Jacoco插件版本 在我的生成文件中包含以下内容: tasks.withType<JacocoReport> { executionData(tasks.withType<Test>()) } tasks.withType<Test>() { finalizedBy("jacocoTestReport") } tasks.withType<JacocoReport> {

我正在使用Gradle 6.6.1和最新的Jacoco插件版本

在我的生成文件中包含以下内容:

tasks.withType<JacocoReport> {
  executionData(tasks.withType<Test>())
}
tasks.withType<Test>() {
  finalizedBy("jacocoTestReport")
}


tasks.withType<JacocoReport> {
  executionData(fileTree(buildDir).include("/jacoco/*.exec"))
}