首页 > 解决方案 > 如何在 Android Studio 中每次运行时运行“颤振测试”?

问题描述

每次单击“运行按钮”时,我都想执行“颤振测试”命令。我怎样才能做到这一点?

标签: flutterandroid-studiotesting

解决方案


检查这篇文章:- https://medium.com/flutter-community/hot-reload-for-flutter-integration-tests-e0478b63bd54

如果您使用的是 VS Code,则可以在 launch.json 中添加配置来运行测试。将“程序”属性设置为集成测试的路径。

 {
    "name": "Integration Test: Run Test",
    "program": "project_root/integration_test/foo_test.dart",
    "request": "launch",
    "type": "dart"
},

您也可以通过 VS Code 重新启动程序,测试将再次运行。


推荐阅读