【问题标题】:How to run "flutter test" on every run in Android Studio?如何在 Android Studio 中每次运行时运行“颤振测试”?
【发布时间】:2021-08-29 05:49:10
【问题描述】:

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

【问题讨论】:

    标签: flutter android-studio testing


    【解决方案1】:

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

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

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

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

    【讨论】:

    • 我正在使用 Android Studio
    猜你喜欢
    • 2020-11-02
    • 2018-06-18
    • 2020-03-22
    • 1970-01-01
    • 2020-01-30
    • 2022-11-04
    • 2021-06-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多