Bernát Gábor
09/20/2024, 10:08 PMVampire
09/20/2024, 10:11 PMBernát Gábor
09/20/2024, 10:25 PMBernát Gábor
09/20/2024, 11:35 PMtasks.register<JacocoReport>("jacocoTestReportParallel") {
dependsOn("parallel")
sourceSets(sourceSets.main.get())
}
I am setting this and I still get:
Skipping task ':jacocoTestReportParallel' as task onlyIf 'Any of the execution data files exists' is false.Vampire
09/20/2024, 11:37 PMVampire
09/20/2024, 11:37 PMVampire
09/20/2024, 11:37 PMdependsOnVampire
09/20/2024, 11:38 PMdependsOn that does not have a lifecycle task on the left-hand side is a code smell and usually a sign that you do not properly wire task outputs to task inputs.Bernát Gábor
09/20/2024, 11:40 PMtasks.register<JacocoReport>("jacocoTestReportParallel") {
dependsOn("parallel")
sourceSets(sourceSets.main.get())
executionData(tasks.named<Test>("parallel"))
}
which now fails:
> Task :jacocoTestReportParallel FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jacocoTestReportParallel'.
> Unable to read execution data file /Users/bgabor8/git/demo/build/test-results/parallel/binaryBernát Gábor
09/20/2024, 11:41 PM❯ lsd -alth /Users/bgabor8/git/demo/build/test-results/parallel/binary
Fri Sep 20 16:39:13 2024 384 B ..
Fri Sep 20 16:39:13 2024 4.7 KB results.bin
Fri Sep 20 16:39:13 2024 160 B .
Fri Sep 20 16:39:13 2024 1.4 KB output.bin.idx
Fri Sep 20 16:39:13 2024 40 KB output.binVampire
09/20/2024, 11:44 PMVampire
09/20/2024, 11:44 PMVampire
09/20/2024, 11:44 PMVampire
09/20/2024, 11:46 PMtasks.named<Test>("parallel").map { it.the<JacocoTaskExtension>().destinationFile } and remove that bad dependsOnBernát Gábor
09/20/2024, 11:46 PMVampire
09/20/2024, 11:47 PMBernát Gábor
09/20/2024, 11:49 PMBernát Gábor
09/20/2024, 11:51 PM