Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio Flatter在Android Studio中运行多个单元测试_Android Studio_Flutter_Testing - Fatal编程技术网

Android studio Flatter在Android Studio中运行多个单元测试

Android studio Flatter在Android Studio中运行多个单元测试,android-studio,flutter,testing,Android Studio,Flutter,Testing,我一直在关注这个颤振文件: 我可以在Android Studio中运行测试,如果我打开文件并点击run按钮运行它 问题是我想用一个按钮运行所有的测试,就像在Xcode中一样 在Android Studio中如何做到这一点 我所做的: 创建了两个愚蠢的测试,只是为了拥有它们 使用目录中的All选项创建测试配置,并指向测试目录: 点击播放按钮后,我得到: Failed to load "/Users/martinberger/Dev/flutter_apps/iCash/icash/

我一直在关注这个颤振文件:

我可以在Android Studio中运行测试,如果我打开文件并点击run按钮运行它

问题是我想用一个按钮运行所有的测试,就像在Xcode中一样

在Android Studio中如何做到这一点

我所做的:

创建了两个愚蠢的测试,只是为了拥有它们

使用目录中的
All
选项创建测试配置,并指向测试目录:

点击播放按钮后,我得到:

Failed to load "/Users/martinberger/Dev/flutter_apps/iCash/icash/test/second_test.dart":
Test never connected to test harness.
Test: /Users/martinberger/Dev/flutter_apps/iCash/icash/test/second_test.dart
Shell: /Users/martinberger/Dev/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester
所以第一次测试完成了,但是下一次,甚至没有开始

在我读过的十几篇教程/博客/文档中,他们都专注于编写一个测试并通过右键单击或打开并单击播放按钮来运行它


我来自iOS/Xcode的背景,所以关于在Android Studio中运行一个简单的测试套件,有什么我应该知道的吗?

您可以键入
flatter test
,然后在终端中键入您想要的目录


因此,在您的情况下:
flattertest/
您可以键入
flattertest
,然后在终端中键入所需的目录

因此,在您的情况下:
flattertest/