Running flutter tests & drive tests in multiple directories inside the same workflow #3061
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected results
Actual results
Build id (optional)67f42b1676766a7c17799fbf |
Beta Was this translation helpful? Give feedback.
Answered by
dam-ease
Apr 14, 2025
Replies: 1 comment 1 reply
-
I tried starting simulator in post test script (using flutter workflow editor) but it shut down while tests where running #!/usr/bin/env bash
set -e;
set -x;
cd example
flutter emulators; # just to see available simulators
flutter emulators --launch apple_ios_simulator;
flutter pub get; flutter test integration_test |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @predatorx7
You can handle this in the pre-test script and then enable integration tests in the Tests section. Enabling integration tests to run flutter driver allows you to select the iOS simulator, which will be automatically launched during the process.
After the test execution, if you access the build machine remotely, you’ll notice that the simulator remains active only until the tests are completed, after which it shuts down automatically.
Screenshot
Please try this out and let me know how it goes on your end.