From ef6810bf4546a8afcc8f54a8ea1f72796ca9efa8 Mon Sep 17 00:00:00 2001 From: William 'Billy' Brawner Date: Tue, 20 Aug 2019 06:27:07 -0700 Subject: [PATCH] Make jacocoTestReport task not dependent on running UI tests --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4b75de6..75a304c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,7 +9,7 @@ def keystoreProperties = new Properties() try { def keystorePropertiesFile = rootProject.file("keystore.properties") keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) -} catch (FileNotFoundException e) { +} catch (FileNotFoundException ignored) { logger.warn("Unable to load keystore properties. Automatic signing won't be available") keystoreProperties['keyAlias'] = "" keystoreProperties['keyPassword'] = "" @@ -125,7 +125,7 @@ tasks.withType(Test) { jacoco.includeNoLocationClasses = true } -task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) { +task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) { reports { xml.enabled = true html.enabled = true