You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR I can't evaluate code in Debug Console when running integration tests. I don't know if I'm doing something wrong or if this is just not possible.
Also, I can't find a way to run (using VS Code's launch.json) normal widget tests with flutter run test/widget_test.dart (=running on device) instead of flutter test test/widget_test.dart (running in isolation). This might be another issue, though.
To Reproduce
TL;DR Run any Flutter integration test with VS Code and try to evaluate Dart code in the Debug Console.
Create .vscode/launch.json in the root of a Flutter project with the following contents:
Describe the bug
TL;DR I can't evaluate code in Debug Console when running integration tests. I don't know if I'm doing something wrong or if this is just not possible.
Also, I can't find a way to run (using VS Code's
launch.json) normal widget tests withflutter run test/widget_test.dart(=running on device) instead offlutter test test/widget_test.dart(running in isolation). This might be another issue, though.To Reproduce
TL;DR Run any Flutter integration test with VS Code and try to evaluate Dart code in the Debug Console.
Create
.vscode/launch.jsonin the root of a Flutter project with the following contents:{ "version": "0.2.0", "configurations": [ { "name": "flutter run app", "request": "launch", "type": "dart", "program": "lib/main.dart" }, { "name": "flutter run integration tests", "request": "launch", "type": "dart", "program": "integration_test/example_test.dart" }, ] }$ code .). It's located inpackages/patrol/exampleflutter run integration testsconfiguration fromlaunch.json_compileExpression: No compilation service available; cannot evaluate from source..Expected behavior
Being able to evaluate Dart code in Debug Console when the test is stopped on a breakpoint.
This is how it works with widget tests running in isolation:
Running.widget.test.in.isolation.mov
System info