-
Notifications
You must be signed in to change notification settings - Fork 303
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
"Test: Run All Tests" shows error prompt but no error output #4032
Comments
So I think what's happening here is when we try to run the web integration tests, we notice the selected device is not valid for this project (only web is), so we try to prompt for a device (which makes sense when you run one project, but perhaps less sense if you've simultaneously kicking off lots of them). However, I think the device selector is immediately hidden by another project starting. In this case, since there's only one valid device, we could probably auto-select it. However that wouldn't fix a similar issue if your project support multiple platforms and you happen to have a different one selected. Perhaps when running integration tests we should just skip any that aren't support for the selected device and show a message, and then it's up to you to run them per-device if you need to. (Also, perhaps we should make it easier to run all non-integration tests 🤔) |
Only suppress when there is > 1 item being run (showing on error/prompt is fine). See #4032.
@nickmeinhold can you try upgrading to pre-release v3.43.20220628 and see how things work for you? Main changes are:
The result is that if your selected device is not valid for a set of tests, they will be skipped. If you try to run them individually, you'll see the errors (or prompts for things like a valid device). |
@DanTup works like a charm! Really appreciate your (typically) speedy response! |
Great, thanks for confirming! |
Describe the bug
When I use "Test: Run All Tests" I get this error message
But I can't find the actual error output anywhere, there doesn't seem to be anything in the Debug console or the Output
I also get this, but as you can see I have a device attached
The tests do seem to run but the only indication of that is in the Debug console - the Testing tab shows 0 tests passed in the summary but then individual tests show as passing
To Reproduce
EDIT: I went into each sub-folder of the monorepo mentioned below and tried running tests until I narrowed it down to a flutter plugin and then specifically to an integration test in the web platform plugin's example project, found here:
packages/flutter/plugins/flutter_box2d/flutter_box2d_web/example/
It's a web integration test and follows the convention from https://docs.flutter.dev/cookbook/testing/integration/introduction#5b-web but I'm guessing that doesn't work with the test runner?
Steps to reproduce the behavior:
(I will try to create a minimal repro but in case this is useful in the meantime)
Expected behavior
Tests show running state in the TESTING tab and all tests run.
Operating System and version:
MacOS 12.4
VS Code version:
1.68.1
Dart extension version:
3.42.1
Dart/Flutter SDK version:
Flutter 3.0.3
Target device (if the issue relates to Flutter debugging):
I have tried targets of macos and an iphone SE running 15.4.1
The text was updated successfully, but these errors were encountered: