Skip to content

Commit

Permalink
added jacoco plugin for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhramanan committed Jan 22, 2020
1 parent a49f04d commit 41de4ad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
9 changes: 9 additions & 0 deletions madman-okhttp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'jacoco-android'

jacoco {
toolVersion = "0.8.4"
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

android {
compileSdkVersion 29
Expand Down
9 changes: 9 additions & 0 deletions madman/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'jacoco-android'

jacoco {
toolVersion = "0.8.4"
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

android {
compileSdkVersion 29
Expand Down

0 comments on commit 41de4ad

Please sign in to comment.