Skip to content

Commit ca927df

Browse files
committed
Remove the foundAny check for JaCoCo generated reports
1 parent a9a7215 commit ca927df

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

jacocoaggregatecoverageplugin/src/main/kotlin/com/azizutku/jacocoaggregatecoverageplugin/CopyJacocoReportsTask.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ internal abstract class CopyJacocoReportsTask : DefaultTask() {
6868
}
6969
copyRequiredResources(outputDirectoryResources.get().asFile)
7070

71-
var foundAny = false
7271
project.subprojects.forEach { subproject ->
7372
val jacocoReportDir = subproject.layout.buildDirectory
7473
.dir(reportDirectory)
@@ -80,18 +79,8 @@ internal abstract class CopyJacocoReportsTask : DefaultTask() {
8079
from(jacocoReportDir)
8180
into(aggregatedReportDir.get().dir(subproject.path))
8281
}
83-
foundAny = true
8482
}
8583
}
86-
87-
if (foundAny.not()) {
88-
logger.error(
89-
"There is no generated test report, you should " +
90-
"run `${pluginExtension.jacocoTestReportTask.get()}` task first, " +
91-
"then call `aggregateJacocoReports`. Or you can run " +
92-
"`generateAndAggregateJacocoReports` task directly."
93-
)
94-
}
9584
}
9685

9786
/**

0 commit comments

Comments
 (0)