Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Commit 2edbee0

Browse files
committed
include code coverage of testkit tests
1 parent a553dc6 commit 2edbee0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ test {
133133
systemProperty 'android.build.tools.version', androidBuildToolsVersion
134134
systemProperty 'jacoco.runtime', configurations.jacocoRuntime.asPath.replace('\\', '/')
135135
systemProperty 'buildDir', "$buildDir".replace('\\', '/')
136+
137+
doLast {
138+
def coverageFiles = fileTree("${buildDir}/jacoco").include('*.exec')
139+
coverageFiles.each { file ->
140+
jacocoTestReport {
141+
executionData file
142+
}
143+
}
144+
}
136145
}
137146

138147
plugindev {
@@ -202,10 +211,6 @@ jacoco {
202211
}
203212

204213
jacocoTestReport {
205-
def coverageFiles = fileTree("${buildDir}/jacoco").include('*.exec')
206-
coverageFiles.each { file ->
207-
executionData file
208-
}
209214
reports {
210215
xml.enabled true
211216
html.enabled true

0 commit comments

Comments
 (0)