Skip to content

Commit 91554aa

Browse files
committed
CI: Add instrumented tests job with gmd
1 parent c989f9e commit 91554aa

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,24 @@ steps:
2121
agents:
2222
queue: "mac-metal"
2323

24-
- label: "Instrumented tests (ReviewsUITest)"
24+
- label: "Instrumented tests without GMD (ReviewsUITest)"
2525
command: |
2626
echo "--- 🧪 Testing"
2727
./gradlew :WooCommerce:connectedVanillaDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.woocommerce.android.e2e.tests.ui.ReviewsUITest
2828
plugins: [ $CI_TOOLKIT ]
2929
artifact_paths:
30-
- "**/build/reports/androidTests/**/**/**/**/**/*"
30+
- "**/build/reports/androidTests/connected/**/**/**/*"
31+
- "**/build/reports/androidTests/connected/**/**/**/**/*"
32+
agents:
33+
queue: "mac-metal"
34+
35+
- label: "Instrumented tests with GMD (ReviewsUITest)"
36+
command: |
37+
echo "--- 🧪 Testing"
38+
./gradlew :WooCommerce:pixel5api34VanillaDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.woocommerce.android.e2e.tests.ui.ReviewsUITest
39+
plugins: [ $CI_TOOLKIT ]
40+
artifact_paths:
41+
- "**/build/reports/androidTests/managedDevice/**/**/**/pixel5api34/*"
42+
- "**/build/reports/androidTests/managedDevice/**/**/**/pixel5api34/**/*"
3143
agents:
3244
queue: "mac-metal"

WooCommerce/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ android {
175175
testOptions {
176176
animationsDisabled = true
177177
execution 'ANDROIDX_TEST_ORCHESTRATOR'
178+
managedDevices {
179+
localDevices {
180+
pixel5api34 {
181+
device = "Pixel 5"
182+
apiLevel = 34
183+
systemImageSource = "google"
184+
}
185+
}
186+
}
178187
}
179188

180189
signingConfigs {

0 commit comments

Comments
 (0)