We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 542efe2 commit cd25a63Copy full SHA for cd25a63
build.gradle
@@ -36,4 +36,24 @@ dependencies {
36
test {
37
useTestNG()
38
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
59
}
0 commit comments