This message was deleted.
# community-support
s
This message was deleted.
v
It tries to read the JAR as JaCoCo execution data which cannot work. But without you providing details, optimally an MCVE, there is not much we can do to help.
m
I have two modules: server and interface plugin i included is id ‘jacoco-report-aggregation’ and no extra config is added in my build.gradle for server module. No config has been added in interface module. It works fine if i am generating jacoco report for server only using the following configs:
Copy code
jacoco {
    toolVersion = "0.8.8"
    reportsDir = file("$buildDir/jacoco")
}

jacocoTestReport {
    dependsOn test
    sourceSets sourceSets.main
    additionalClassDirs(configurations.runtimeClasspath.filter{it.path.contains(rootProject.name)  })
    executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
    reports {
        html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
        xml.enabled false
        csv.enabled true
    }
}
I am confused what configs i need to pass for agregating reports
@Vampire
v
It should just work out of the box. If it doesn't as I said, please provide an MCVE so that someone could maybe see your error if you didn't find it already while trying to create it
m
Hey @Vampire if one module doesnt have test cases but i try to aggregate the report so should it fail ?
and does aggregate gets report from jar the gradle makes or it will run test cases first to get results
v
No, the aggregation logic would mitigate modules without tests. The JaCoCo reports are not in jars and couldn't be deterimined from the jar. It will run the test cases and aggregate the proper results.