-
In my workflow, I want to run integration tests for my Flutter app, by running those scripts: - name: Install pods
script: |
find . -name "Podfile" -execdir pod install \;
- name: Integration tests iOS
script: |
flutter emulators --launch apple_ios_simulator
flutter -d iPhone test --machine > test-results/flutter.json integration_test --flavor free
test_report: test-results/flutter.json But for some reason, I got the following error:
What did I do wrong? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
mregnauld
Jan 18, 2023
Replies: 2 comments 11 replies
-
Checking |
Beta Was this translation helpful? Give feedback.
10 replies
-
OK so this finally worked: - name: Install pods
script: |
flutter pub get
find . -name "Podfile" -execdir pod install \;
- name: Integration tests iOS
script: |
xcrun simctl shutdown all
TEST_DEVICE=$(xcrun simctl create test-device com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-16-2)
xcrun simctl boot $TEST_DEVICE
flutter -d $TEST_DEVICE test integration_test --flavor free Also, very important, it works only if I use Thanks @himesh-cm for your help! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
himesh-cm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK so this finally worked:
Also, very important, it works only if I use
cocoapods: 1.11.3
, and notcocoapods: 1.9.1
.Thanks @himesh-cm for your help!