File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,28 @@ steps:
23
23
24
24
- label : " Instrumented tests without GMD (ReviewsUITest)"
25
25
command : |
26
+ echo "--- 📋 Checking Android SDK"
27
+ adb --version
28
+ emulator -list-avds
29
+ echo "--- 🤖 Launching Emulator(s)"
30
+ emulator -avd pixel5api34 -no-snapshot -no-boot-anim -no-audio &
31
+ echo "--- 🤖 Waiting for Emulator(s) to Start"
32
+ adb wait-for-device
33
+ while [ "$(adb shell getprop sys.boot_completed | tr -d '\r')" != "1" ]; do
34
+ sleep 1
35
+ done
36
+ echo "--- 🤖 Unlock Emulator(s)"
37
+ adb shell dumpsys window | grep mDreamingLockscreen
38
+ adb -s emulator-5554 shell input keyevent 82
39
+ echo "--- 🤖 Checking Emulator(s)"
40
+ adb devices
41
+ adb shell dumpsys window | grep mDreamingLockscreen
26
42
echo "--- 🧪 Testing"
27
43
./gradlew :WooCommerce:connectedVanillaDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.woocommerce.android.e2e.tests.ui.ReviewsUITest
44
+ echo "--- 🤖 Checking Emulator(s)"
45
+ adb devices
46
+ echo "--- 🤖 Stopping Emulator(s)"
47
+ adb -s emulator-5554 emu kill
28
48
plugins : [ $CI_TOOLKIT ]
29
49
artifact_paths :
30
50
- " **/build/reports/androidTests/connected/**/**/**/*"
You can’t perform that action at this time.
0 commit comments