From d5df6e0ce8351534916de5f2771705e23a008e08 Mon Sep 17 00:00:00 2001 From: Midori Date: Sat, 29 Jul 2023 00:48:36 +0900 Subject: [PATCH] Add drive --- .github/workflows/ci.yml | 8 ++++++-- example/test_driver/integration_test.dart | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 example/test_driver/integration_test.dart diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85b50421..749e8314 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' @@ -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 \ No newline at end of file diff --git a/example/test_driver/integration_test.dart b/example/test_driver/integration_test.dart new file mode 100644 index 00000000..6854dea6 --- /dev/null +++ b/example/test_driver/integration_test.dart @@ -0,0 +1,3 @@ +import 'package:integration_test/integration_test_driver.dart'; + +Future main() => integrationDriver(); \ No newline at end of file