forked from wavesplatform/WavesWallet-android
-
Notifications
You must be signed in to change notification settings - Fork 6
/
jacoco.gradle
49 lines (44 loc) · 1.45 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apply plugin: 'jacoco-android'
apply plugin: 'com.github.kt3k.coveralls'
task testDevDebugUnitTestCoverage(type: JacocoReport, dependsOn: "testDevDebugUnitTest") {
group = "Reporting"
description = "Generate Jacoco coverage reports on the devDebug build."
def excludedDirs = [
'**/R.class',
'**/R$*.class',
'**/BuildConfig.*',
'**/*$Lambda$*.*',
'**/*Module.*',
'**/*Dagger*.*',
'**/*MembersInjector*.*',
'**/*_Provide*Factory*.*',
'**/Manifest*.*',
'**/*Activity*.*',
'**/*Dialog.*',
'**/*Fragment*.*',
'**/*ViewHolder*.*',
'**/*Adapter*.*',
'**/*zxing**',
'**/*customviews**',
'**/*databinding**'
]
classDirectories = fileTree(
dir: "${project.buildDir}/intermediates/classes/dev/debug",
excludes: excludedDirs)
def coverageSourceDirs = [
"src/main/java"
]
additionalSourceDirs = files(coverageSourceDirs)
sourceDirectories = files(coverageSourceDirs)
executionData = files("${project.buildDir}/jacoco/testDevDebugUnitTest.exec")
reports {
xml.enabled = true
html.enabled = true
}
}
coveralls {
jacocoReportPath = "${buildDir}/reports/jacoco/testDevDebugUnitTestCoverage/testDevDebugUnitTestCoverage.xml"
}
tasks.coveralls {
dependsOn 'testDevDebugUnitTestCoverage'
}