Skip to content

Commit d0c1fdb

Browse files
committed
updated
1 parent 36229c1 commit d0c1fdb

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

build.gradle

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,14 @@ dependencies {
3535

3636
test {
3737
useTestNG()
38-
finalizedBy jacocoTestReport // report is always generated after tests run
3938
}
4039

4140
// codecov integration https://github.com/codecov/example-gradle
42-
task codeCoverageReport(type: JacocoReport) {
43-
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
44-
45-
subprojects.each {
46-
sourceSets it.sourceSets.main
47-
}
48-
41+
jacocoTestReport {
4942
reports {
5043
xml.enabled true
51-
xml.destination file("${buildDir}/reports/jacoco/report.xml")
52-
html.enabled false
53-
csv.enabled false
44+
html.enabled true
5445
}
5546
}
5647

57-
codeCoverageReport.dependsOn {
58-
subprojects*.test
59-
}
48+
check.dependsOn jacocoTestReport

0 commit comments

Comments
 (0)