Skip to content

Commit 5858e5f

Browse files
authored
Merge pull request #5 from rajpatta/coverage_support
Add Code coverage support
2 parents 96c63dd + 5e52cb8 commit 5858e5f

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

app/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'spoon'
3-
4-
3+
apply plugin: 'jacoco'
4+
jacoco {
5+
toolVersion='0.7.5.201505241946'
6+
}
57
buildscript {
68
repositories {
79
mavenCentral()
@@ -29,6 +31,9 @@ android {
2931
minifyEnabled false
3032
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3133
}
34+
debug {
35+
testCoverageEnabled true
36+
}
3237
}
3338
}
3439

@@ -39,7 +44,7 @@ dependencies {
3944
testImplementation 'junit:junit:4.12'
4045
androidTestImplementation 'com.android.support.test:runner:1.0.1'
4146
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
42-
androidTestCompile 'com.squareup.spoon:spoon-client:1.7.1'
47+
androidTestImplementation 'com.squareup.spoon:spoon-client:1.7.1'
4348
}
4449

4550
spoon {

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.0.1'
11-
12-
10+
classpath 'com.android.tools.build:gradle:3.4.1'
1311
// NOTE: Do not place your application dependencies here; they belong
1412
// in the individual module build.gradle files
1513
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Jan 04 18:31:34 IST 2018
1+
#Fri Nov 08 15:53:49 IST 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 commit comments

Comments
 (0)