In a Gradle setting, it would be great to be able to have exit 1 handled as I may make other tasks dependent on this. for example, I may want to run testDebugComposer
For example, I may define:
project.task(testDebugCustomIntegrationTest, type: DefaultTask, dependsOn: [testDebugComposer, clearConnectedDevices])
project.task(clearConnectedDevices, type: ClearDevicesTask, dependsOn: testDebugComposer) {
mustRunAfter testDebugComposer
}
testDebugCustomIntegrationTest is a task I've created so that developers can simply run ./gradlew testDebugCustomIntegrationTest and have testDebugComposer run and then clearConnectedDevices.
Such set ups are helpful for CI so that I can ensure that each run will get a clean emulator.
having testDebugComposer makes it so that clearConnectedDevices even though I do ./gradlew testDebugCustomIntegrationTest --continue
I could get around it other ways, but those start to get more difficult to maintain in Gradle.
In a Gradle setting, it would be great to be able to have
exit 1handled as I may make other tasks dependent on this. for example, I may want to runtestDebugComposerFor example, I may define:
testDebugCustomIntegrationTestis a task I've created so that developers can simply run./gradlew testDebugCustomIntegrationTestand havetestDebugComposerrun and thenclearConnectedDevices.Such set ups are helpful for CI so that I can ensure that each run will get a clean emulator.
having
testDebugComposermakes it so thatclearConnectedDeviceseven though I do./gradlew testDebugCustomIntegrationTest --continueI could get around it other ways, but those start to get more difficult to maintain in Gradle.