diff options
| author | Albin <albin@mullvad.net> | 2022-12-28 16:01:49 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2023-01-10 15:32:46 +0100 |
| commit | 16745044ae9e8d162b98c0ea22ac71c531419282 (patch) | |
| tree | 771af7bc82e72c9314f056cd8674898dec1bd7ef /android/scripts | |
| parent | 209583159108f789b9cb8f9aa2c81d56cf16475c (diff) | |
| download | mullvadvpn-16745044ae9e8d162b98c0ea22ac71c531419282.tar.xz mullvadvpn-16745044ae9e8d162b98c0ea22ac71c531419282.zip | |
Add mockapi to instrumentation test script
Diffstat (limited to 'android/scripts')
| -rwxr-xr-x | android/scripts/run-instrumented-tests.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/android/scripts/run-instrumented-tests.sh b/android/scripts/run-instrumented-tests.sh index 3763324c15..27eb8a9be8 100755 --- a/android/scripts/run-instrumented-tests.sh +++ b/android/scripts/run-instrumented-tests.sh @@ -33,6 +33,12 @@ while [[ "$#" -gt 0 ]]; do -e valid_test_account_token $VALID_TEST_ACCOUNT_TOKEN \ -e invalid_test_account_token $INVALID_TEST_ACCOUNT_TOKEN" ;; + mockapi) + TEST_TYPE="mockapi" + USE_ORCHESTRATOR="true" + TEST_PACKAGE="net.mullvad.mullvadvpn.test.$TEST_TYPE" + TEST_APK="$APK_BASE_DIR/test/$TEST_TYPE/build/outputs/apk/debug/$TEST_TYPE-debug.apk" + ;; *) echo "Unknown argument: $1" exit 1 @@ -42,11 +48,11 @@ while [[ "$#" -gt 0 ]]; do done if [[ -z ${TEST_TYPE-} ]]; then - echo "Missing test type argument. Should be one of: app, e2e" + echo "Missing test type argument. Should be one of: app, e2e, mockapi" exit 1 fi -if [[ "${ORCHESTRATOR_APK_PATH-}" == "true" ]]; then +if [[ "${USE_ORCHESTRATOR-}" == "true" ]]; then if [[ -z ${ORCHESTRATOR_APK_PATH-} ]]; then echo "The variable ORCHESTRATOR_APK_PATH is not set." exit 1 |
