Skip to content

Commit

Permalink
Add drive
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Jul 28, 2023
1 parent 9623924 commit d5df6e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ jobs:
flutter build apk
adb install -r build/app/outputs/flutter-apk/app-release.apk
adb shell pm grant studio.midoridesign.gal_example android.permission.WRITE_EXTERNAL_STORAGE
flutter test integration_test/integration_test.dart --timeout none
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/integration_test.dart --timeout none
- name: Retry integration tests
if: steps.Run-integration-tests.outcome == 'failure'
Expand All @@ -184,7 +186,9 @@ jobs:
flutter build apk
adb install -r build/app/outputs/flutter-apk/app-release.apk
adb shell pm grant studio.midoridesign.gal_example android.permission.WRITE_EXTERNAL_STORAGE
flutter test integration_test/integration_test.dart --timeout none
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/integration_test.dart --timeout none
pre-emulator-launch-script: |
adb kill-server
adb start-server
3 changes: 3 additions & 0 deletions example/test_driver/integration_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import 'package:integration_test/integration_test_driver.dart';

Future<void> main() => integrationDriver();

0 comments on commit d5df6e0

Please sign in to comment.