Reputation: 7207
My unit tests are located in the test directory and all end in '_test.dart'. To get around both of the above, I can run all the unit tests by doing flutter test
from the terminal, but I was wondering if there was a GUI option.
This issue does not exist on Android Studio.
Upvotes: 7
Views: 4827
Reputation: 23894
Have you tried this? https://dartcode.org/releases/v2-21/
Add the following to your launch.json
file. If you do not have a launch.json file, go to the Run view in VS Code and click create a launch.json file
.
{
"name": "All Tests",
"type": "dart",
"request": "launch",
"program": "tests/", // or test/foo for a subset of tests
}
Upvotes: 8