diff --git a/build.gradle b/build.gradle index 6d5a069d3e..63a5f5eaaa 100644 --- a/build.gradle +++ b/build.gradle @@ -19,8 +19,15 @@ buildscript { classpath 'com.android.tools.build:gradle:2.3.0' classpath 'com.novoda:bintray-release:0.4.0' } + // Workaround for the following test coverage issue. Remove when fixed: + // https://code.google.com/p/android/issues/detail?id=226070 + configurations.all { + resolutionStrategy { + force 'org.jacoco:org.jacoco.report:0.7.4.201502262128' + force 'org.jacoco:org.jacoco.core:0.7.4.201502262128' + } + } } - allprojects { repositories { jcenter() diff --git a/library/core/build.gradle b/library/core/build.gradle index 046d80af0e..49ed791a78 100644 --- a/library/core/build.gradle +++ b/library/core/build.gradle @@ -30,11 +30,9 @@ android { } buildTypes { - // Re-enable test coverage when the following issue is fixed: - // https://code.google.com/p/android/issues/detail?id=226070 - // debug { - // testCoverageEnabled = true - // } + debug { + testCoverageEnabled = true + } } }