Daniel Svensson
03/09/2022, 4:16 PMVampire
03/09/2022, 5:03 PMDaniel Svensson
03/09/2022, 7:29 PMThe Test Report Aggregation plugin (plugin id: test-report-aggregation) provides tasks and configurations used to aggregate the results of multiple Test task invocations (potentially spanning multiple Gradle projects) into a single HTML report...what I'm interested in is the JUnit XML files. I opted for solving it via:
withType(Test::class.java) {
doLast {
copy {
val reportDir = reports.junitXml.outputLocation.get()
from(reports.junitXml.outputLocation)
into(rootProject.buildDir.resolve(reportDir.asFile.relativeTo(buildDir)))
}
}
}
Should probably make it conditional if running under CI, but something along those lines.
Is there any drawbacks to my solution? The CI starts off with a non-existing build directory every time.Vampire
03/09/2022, 7:44 PMVampire
03/09/2022, 7:45 PMVampire
03/09/2022, 7:45 PMVampire
03/09/2022, 7:46 PMVampire
03/09/2022, 7:46 PMDaniel Svensson
03/09/2022, 8:29 PMVampire
03/09/2022, 9:41 PMDaniel Svensson
04/08/2022, 6:39 AMDaniel Svensson
04/08/2022, 6:40 AMVampire
04/08/2022, 6:45 AMDaniel Svensson
04/08/2022, 6:54 AMDaniel Svensson
04/08/2022, 6:54 AM