Skip to content

Commit cd25a63

Browse files
committed
codecov integration
1 parent 542efe2 commit cd25a63

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,24 @@ dependencies {
3636
test {
3737
useTestNG()
3838
finalizedBy jacocoTestReport // report is always generated after tests run
39+
}
40+
41+
// 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+
49+
reports {
50+
xml.enabled true
51+
xml.destination file("${buildDir}/reports/jacoco/report.xml")
52+
html.enabled false
53+
csv.enabled false
54+
}
55+
}
56+
57+
codeCoverageReport.dependsOn {
58+
subprojects*.test
3959
}

0 commit comments

Comments
 (0)