-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathrun_tests.sh
More file actions
18 lines (15 loc) · 632 Bytes
/
run_tests.sh
File metadata and controls
18 lines (15 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set +e
./gradlew assembleEspresso assembleEspressoAndroidTest --no-daemon
adb install app/build/outputs/apk/espresso/app-espresso.apk
adb install app/build/outputs/apk/androidTest/espresso/app-espresso-androidTest.apk
adb shell am instrument -w -m -e debug false -e class 'com.mitteloupe.whoami.suite.SmokeTests' com.mitteloupe.whoami.test/com.mitteloupe.whoami.di.HiltTestRunner
GRADLE_EXIT_CODE=$?
set -e
if [ $GRADLE_EXIT_CODE -ne 0 ]; then
echo Pulling screenshots from the emulator...
adb pull /storage/emulated/0/Pictures/ Screenshots
rm -rf Screenshots/.thumbnails
echo Done.
fi
exit $GRADLE_EXIT_CODE