[英]How to run "flutter test" on every run in Android Studio?
I'd like to execute the "flutter test" command every time I click the "run button".每次单击“运行按钮”时,我都想执行“颤振测试”命令。 How can I achieve this in Android Studio?
如何在 Android Studio 中实现这一点?
check this article:- https://medium.com/flutter-community/hot-reload-for-flutter-integration-tests-e0478b63bd54检查这篇文章:- https://medium.com/flutter-community/hot-reload-for-flutter-integration-tests-e0478b63bd54
If you're using VS Code, you can add a configuration in launch.json to run the test.如果您使用的是 VS Code,您可以在 launch.json 中添加配置来运行测试。 Set the 'program' property to the path of the integration test.
将“程序”属性设置为集成测试的路径。
{
"name": "Integration Test: Run Test",
"program": "project_root/integration_test/foo_test.dart",
"request": "launch",
"type": "dart"
},
You can also restart the program via VS Code and the test will run again.您也可以通过 VS Code 重新启动程序,测试将再次运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.