From 5925dc958612c8dbbdf1431700ef37e585fde078 Mon Sep 17 00:00:00 2001 From: Robert Buessow Date: Tue, 24 Oct 2023 23:22:45 +0200 Subject: [PATCH] Set testCoverageEnabled=false in wear. Setting this to true conflicts with the jacoco plugin and causes no coverage reporting. Not sure why this is only a problem in the wear subproj. --- wear/build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wear/build.gradle.kts b/wear/build.gradle.kts index 9e074ec8c1..ad13b8e525 100644 --- a/wear/build.gradle.kts +++ b/wear/build.gradle.kts @@ -50,6 +50,18 @@ android { buildConfigField("String", "BUILDVERSION", "\"${generateGitBuild()}-${generateDate()}\"") } + android { + buildTypes { + debug { + enableUnitTestCoverage = true + // Disable androidTest coverage, since it performs offline coverage + // instrumentation and that causes online (JavaAgent) instrumentation + // to fail in this project. + enableAndroidTestCoverage = false + } + } + } + flavorDimensions.add("standard") productFlavors { create("full") {