Skip to content

Commit

Permalink
Add jacoco with a plugin that automatically configures it for all sub…
Browse files Browse the repository at this point in the history
…modules (#15)

* Add a gradle plugin to automatically run jacoco for all gradle submodules automatically. See https://github.com/vanniktech/gradle-android-junit-jacoco-plugin
  • Loading branch information
Serchinastico committed Dec 11, 2018
1 parent f7071eb commit 2f1a291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android:
- extra

script:
- ./gradlew check test
- ./gradlew test

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.11"
classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.13.0"
}
}

Expand All @@ -16,6 +17,9 @@ allprojects {
}
}


task clean(type: Delete) {
delete rootProject.buildDir
}

apply plugin: "com.vanniktech.android.junit.jacoco"

0 comments on commit 2f1a291

Please sign in to comment.