use*_*706 5 dart visual-studio-code flutter
我的单元测试位于 test 目录中,并且全部以“_test.dart”结尾。为了解决上述两个问题,我可以通过flutter test从终端运行所有单元测试,但我想知道是否有 GUI 选项。
Android Studio 上不存在此问题。
你试过这个吗? https://dartcode.org/releases/v2-21/
将以下内容添加到您的launch.json文件中。如果您没有 launch.json 文件,请转到 VS Code 中的“运行”视图,然后单击create a launch.json file。
{
"name": "All Tests",
"type": "dart",
"request": "launch",
"program": "tests/", // or test/foo for a subset of tests
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3783 次 |
| 最近记录: |