-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjacoco-convention.gradle.kts
43 lines (41 loc) · 1.06 KB
/
jacoco-convention.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
plugins {
id("jacoco")
}
configure<JacocoPluginExtension> {
toolVersion = "0.8.8"
}
task<JacocoReport>("jacocoTestReport") {
dependsOn("testDebugUnitTest")
reports {
html.required.set(true)
}
sourceDirectories.setFrom(
files(
"${project.projectDir}/src/main/java"
)
)
classDirectories.setFrom(
fileTree("${project.buildDir}/tmp/kotlin-classes/debug") {
exclude(
setOf(
"**/R.class",
"**/R$*.class",
"**/BuildConfig.*",
"**/Manifest*.*",
"**/*Test*.*",
"android/**/*.*",
"**/*Module.*",
"**/*Dagger*.*",
"**/*MembersInjector*.*",
"**/*_Factory*.*",
"**/*_Provide*Factory*.*"
)
)
}
)
executionData.setFrom(
fileTree("${project.buildDir}") {
include("jacoco/testDebugUnitTest.exec")
}
)
}