-
Notifications
You must be signed in to change notification settings - Fork 1
/
module-jacoco.gradle
35 lines (30 loc) · 1.08 KB
/
module-jacoco.gradle
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
apply plugin: 'jacoco'
tasks.register('codeCoverage', JacocoReport) {
reports {
html.required.set(true)
xml.required.set(true)
}
classDirectories.setFrom(
fileTree(project.buildDir) {
include("**/tmp/kotlin-classes/debug/**")
exclude(
'**/R.class',
'**/R$*.class',
'**/BuildConfig.*',
'**/Manifest*.*',
'**/airbnb/**/*.*',
"**/*Screen*",
"**/Showkase*",
"**/theme/Theme*",
"**/theme/Type*",
)
}
)
sourceDirectories.setFrom(
fileTree(dir: project.projectDir, includes: ["src/main/java/**", "src/main/kotlin/**"])
)
executionData.setFrom(
fileTree(dir: "${buildDir}/test-results/instrumentation_results", includes: ['*.ec']),
fileTree(dir: "${buildDir}/outputs/unit_test_code_coverage", includes: ["**/*.exec", "**/*.ec"])
)
}