diff --git a/k9mail-library/build.gradle b/k9mail-library/build.gradle index f95a158f6..317862f87 100644 --- a/k9mail-library/build.gradle +++ b/k9mail-library/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.android.library' apply from: '../gradle/plugins/checkstyle-android.gradle' apply from: '../gradle/plugins/findbugs-android.gradle' +apply plugin: 'jacoco' repositories { jcenter() @@ -36,6 +37,12 @@ android { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } + buildTypes { + debug { + testCoverageEnabled rootProject.testCoverage + } + } + lintOptions { abortOnError true warningsAsErrors true diff --git a/k9mail/build.gradle b/k9mail/build.gradle index c667e60a4..e14789301 100644 --- a/k9mail/build.gradle +++ b/k9mail/build.gradle @@ -2,6 +2,7 @@ apply plugin: 'android-sdk-manager' apply plugin: 'com.android.application' apply from: '../gradle/plugins/checkstyle-android.gradle' apply from: '../gradle/plugins/findbugs-android.gradle' +apply plugin: 'jacoco' repositories { jcenter()