Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: can not start test driver with iOS simulator #198

Open
dtvtkien opened this issue Mar 3, 2023 · 7 comments
Open

fix: can not start test driver with iOS simulator #198

dtvtkien opened this issue Mar 3, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@dtvtkien
Copy link

dtvtkien commented Mar 3, 2023

Description

I can't start a test driver with my iOS simulator. Here are my logs:

fluttium test flow/splash.yaml
✓ Retrieving devices (6.0s)
✓ Setting up the test runner (27ms)
✓ Setting up the launcher (9ms)
✓ Installing actions (1.4s)
✓ Installing test runner (14.0s)
✗ Failed to start test driver (44.9s)
Error (Xcode): Error: Couldn't resolve the package 'fluttium_test_runner' in 'package:fluttium_test_runner/fluttium_test_runner.dart'.

Could not build the application for the simulator.
Error launching application on iPhone 14.

✓ Uninstalling test runner

I cannot find anything related to fluttium_test_runner in my project modules. How could I fix that?

@dtvtkien dtvtkien added the bug Something isn't working label Mar 3, 2023
@dtvtkien dtvtkien changed the title Can not start test driver with iOS simulator bug: Can not start test driver with iOS simulator Mar 3, 2023
@wolfenrain
Copy link
Owner

The fluttium_test_runner is a generated package that Fluttium automatically adds and removes from your pubspec. It seems that installing the test runner was successful so something must have touched the pubspec afterwards.

Are you able to reproduce this consistently?

@wolfenrain wolfenrain changed the title bug: Can not start test driver with iOS simulator fix: can not start test driver with iOS simulator Mar 3, 2023
@dtvtkien
Copy link
Author

dtvtkien commented Mar 4, 2023

Yes, everytime I start a flow using fluttium test I encounter this problem.

@eb-so
Copy link

eb-so commented Apr 1, 2023

in my case, it's hanging forever

Image

@wolfenrain
Copy link
Owner

Can you try running it with --verbose? And share the output

@eb-so
Copy link

eb-so commented Apr 2, 2023

@wolfenrain Here is the results:

✓ Setting up the test runner (38ms)
✓ Setting up the launcher (9ms)
✓ Installing actions (4.9s)
✓ Installing test runner (22.4s)
Running command: flutter run /Users/ebrahimsoliman/Developer/Projects/flutter_projects/inducer/frontend/app/./.fluttium_snMdOs_launcher.dart -d 84755E8C-6741-4931-8F89-5A4E14DCF263
⠙ Launching the test runner... (0.9s)driver: Launching ./.fluttium_snMdOs_launcher.dart on iPhone 12 Pro in debug mode...

⠇ Launching the test runner... (19.0s)driver: Running pod install...
⠏ Launching the test runner... (88.7s)

@abusaadp
Copy link

Even I am facing the same problem. Is there any fix for it?

@wolfenrain
Copy link
Owner

Even I am facing the same problem. Is there any fix for it?

I haven't gotten to the root cause of it but I suspect it is a racing condition. The next version of Fluttium (see #293) should allow the CLI to detect app starts more better and hopefully remedy this problem or provide more insights into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
Development

No branches or pull requests

4 participants