Closed
Description
In 2.x, we could have our builds check both branch and statement coverage:
val checkBranchCoverage = tasks.register("checkBranchCoverage", OverallCheckTask::class.java) {
dependsOn(reportScoverage)
coverageType = CoverageType.Branch
}
val checkStatementCoverage = tasks.register("checkStatementCoverage", OverallCheckTask::class.java) {
dependsOn(reportScoverage)
coverageType = CoverageType.Statement
}
val checkCoverage = tasks.register("checkCoverage") {
dependsOn(checkStatementCoverage, checkBranchCoverage)
}
but since coverageType
and minimumRate
moved from the task config to the project config (in ScoverageExtension), this won't work anymore.
How can we check both in 3.x?
Metadata
Metadata
Assignees
Labels
No labels