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
{{ message }}
Repository navigation
Dart: Run All Tests does not run all tests after VSCode update to 1.46.0 #2565
After VSCode updated to 1.46.0 the command Dart: Run All Tests only runs a portion of my tests and not all of them.
As you can see on the screenshot only three test suites are run, although there are nine test files inside my project.
It looks like it does not find every test file inside the project, but the tests inside the found test files are all being executed.
Reproduction
Create a new project
Copy the existing test inside widget_test multiple times
Create a few duplicates of widget_test.dart (e.g. widget_2_test.dart)
It turns out much more than just this command is broken. They're all losing the noDebug flag, which causes them to try and run in debug mode (which isn't supported for flutter test with multiple files). I've opened #2566 to track this, though I believe the issue is a regression in VS Code which I've filed at microsoft/vscode#100364.
However this specific issue is fixed as a result of the fix for #2082, which is now triggered by the*Dart: Run All Tests** command as well as running from launch.json.
Activity
DanTup commentedon Jun 17, 2020
It turns out much more than just this command is broken. They're all losing the
noDebugflag, which causes them to try and run in debug mode (which isn't supported forflutter testwith multiple files). I've opened #2566 to track this, though I believe the issue is a regression in VS Code which I've filed at microsoft/vscode#100364.However this specific issue is fixed as a result of the fix for #2082, which is now triggered by the*Dart: Run All Tests** command as well as running from launch.json.