Skip to content

Commit

Permalink
chore: adjust build script for UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Zimmerman committed Feb 4, 2025
1 parent edfa883 commit fc2ecdd
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,17 @@ jobs:
# 7) Build app & test APK
- name: Build app & test APK
run: |
# Example approach with flutter directly (not always 1:1 with Patrol).
flutter build apk --debug
flutter build apk --debug \
--target=integration_test/patrol_test.dart \
-t test_bundle.dart \
--split-debug-info=build/app/intermediates/symbols
patrol build android --target integration_test/example_test.dart
# 8) Run tests on Firebase Test Lab
- name: Run Tests on Firebase Test Lab
run: |
# Typically you define your device matrix, e.g. a Pixel 5, API 33
gcloud firebase test android run \
--type instrumentation \
--app build/app/outputs/flutter-apk/app-debug.apk \
--test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--device model=Pixel5,version=33,locale=en,orientation=portrait \
--timeout 5m
--type instrumentation \
--use-orchestrator \
--app build/app/outputs/apk/debug/app-debug.apk \
--test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--timeout 1m \
--device model=MediumPhone.arm,version=34,locale=en,orientation=portrait \
--record-video \
--environment-variables clearPackageData=true

0 comments on commit fc2ecdd

Please sign in to comment.