Make jacocoTestReport task not dependent on running UI tests

This commit is contained in:
William 'Billy' Brawner 2019-08-20 06:27:07 -07:00 committed by William Brawner
parent 764c3fa72e
commit ef6810bf45

View file

@ -9,7 +9,7 @@ def keystoreProperties = new Properties()
try { try {
def keystorePropertiesFile = rootProject.file("keystore.properties") def keystorePropertiesFile = rootProject.file("keystore.properties")
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
} catch (FileNotFoundException e) { } catch (FileNotFoundException ignored) {
logger.warn("Unable to load keystore properties. Automatic signing won't be available") logger.warn("Unable to load keystore properties. Automatic signing won't be available")
keystoreProperties['keyAlias'] = "" keystoreProperties['keyAlias'] = ""
keystoreProperties['keyPassword'] = "" keystoreProperties['keyPassword'] = ""
@ -125,7 +125,7 @@ tasks.withType(Test) {
jacoco.includeNoLocationClasses = true jacoco.includeNoLocationClasses = true
} }
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) { task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
reports { reports {
xml.enabled = true xml.enabled = true
html.enabled = true html.enabled = true