resolve build warning

This commit is contained in:
Milos Kozak 2022-02-10 17:05:17 +01:00
parent 00596c6e5b
commit 4388857dca
2 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ jobs:
test-command: ./gradlew testFullDebugUnitTest test-command: ./gradlew testFullDebugUnitTest
- android/run-tests: - android/run-tests:
test-command: ./gradlew allDebugCoverage test-command: ./gradlew jacocoAllDebugReport
# Then start the emulator and run the Instrumentation tests! # Then start the emulator and run the Instrumentation tests!
# - android/start-emulator-and-run-tests: # - android/start-emulator-and-run-tests:
@ -36,7 +36,7 @@ jobs:
# command: | # command: |
# ./gradlew assembleRelease # ./gradlew assembleRelease
- codecov/upload: - codecov/upload:
file: './build/reports/jacoco/allDebugCoverage/allDebugCoverage.xml' file: './build/reports/jacoco/jacocoAllDebugReport/jacocoAllDebugReport.xml'
workflows: workflows:
# Below is the definition of your workflow. # Below is the definition of your workflow.

View file

@ -12,7 +12,7 @@ tasks.withType(Test) {
project.afterEvaluate { project.afterEvaluate {
def variants = ["debug", "fullDebug"] def variants = ["debug", "fullDebug"]
tasks.create(name: "allDebugCoverage", type: JacocoReport) { tasks.create(name: "jacocoAllDebugReport", type: JacocoReport) {
group = "Reporting" group = "Reporting"
description = "Generate overall Jacoco coverage report for the debug build." description = "Generate overall Jacoco coverage report for the debug build."
@ -74,7 +74,7 @@ project.afterEvaluate {
def executions = subprojects.collect { proj -> def executions = subprojects.collect { proj ->
variants.collect { variant -> variants.collect { variant ->
def path = "${proj.buildDir}/jacoco/test${variant.capitalize()}UnitTest.exec" def path = "${proj.buildDir}/jacoco/test${variant.capitalize()}UnitTest.exec"
printf('Collecting execution data from: %s\n', path) //printf('Collecting execution data from: %s\n', path)
if ((new File(path)).exists()) path else null if ((new File(path)).exists()) path else null
} }
}.flatten() }.flatten()