Skip to content

Commit ee2f1cd

Browse files
committed
Fixed coverage script
1 parent 4ca12c2 commit ee2f1cd

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

gradle/coverage.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,18 @@
1515
*/
1616

1717
def coverageReportDir = file("$buildDir/reports/coverage/jacoco")
18+
def coverageXmlReportFile = file("${coverageReportDir}/jacocoReport.xml")
1819

1920
jacoco {
2021
toolVersion = "0.8.8"
21-
reportsDir = coverageReportDir
2222
}
2323

24-
def coverageXmlReportFile = file("${coverageReportDir}/jacocoReport.xml")
25-
2624
jacocoTestReport {
2725
reports {
28-
xml.enabled = true
29-
xml.destination = coverageXmlReportFile
30-
html.enabled = true
31-
html.destination = file("${coverageReportDir}/html")
26+
xml.required = true
27+
xml.outputLocation = coverageXmlReportFile
28+
html.required = true
29+
html.outputLocation = file("${coverageReportDir}/html")
3230
}
3331
}
3432

0 commit comments

Comments
 (0)