From bfdc04fbd915a2471ab583cb16dfaaa728ade202 Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Thu, 15 Jul 2021 17:04:32 +0200 Subject: [PATCH] CI: use orchestrator to continue tests after crash + set overall timeout. --- .github/workflows/test.yml | 1 + build.gradle | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40e1da03c..e02437207 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,6 +3,7 @@ name: Test on: [ push ] jobs: test: + timeout-minutes: 45 runs-on: macos-latest strategy: matrix: diff --git a/build.gradle b/build.gradle index feb203dc9..2c606dab8 100644 --- a/build.gradle +++ b/build.gradle @@ -66,6 +66,7 @@ android { targetSdkVersion 30 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + testInstrumentationRunnerArguments clearPackageData: 'true' } buildTypes { @@ -104,4 +105,6 @@ dependencies { androidTestImplementation 'androidx.test:runner:1.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'org.mockito:mockito-android:3.10.0' + + androidTestUtil 'androidx.test:orchestrator:1.4.0' }