简体   繁体   English

Android-在命令行上运行测试的目录

[英]Android - directory for running tests on the command line

I know how to run tests from Android Studio and it's work, and I want to learn how to use command line. 我知道如何从Android Studio运行测试并且可以正常工作,并且我想学习如何使用命令行。

From guide for Espresso link : 从Espresso 链接指南:
"Note: You can also run the tests on the command line using: ./gradlew connectedDebugAndroidTest" “注意:您也可以使用以下命令在命令行上运行测试:./gradlew connectedDebugAndroidTest”

Should I use cmd.exe for this or I can type commands somewhere in Android Studio? 我应该使用cmd.exe还是可以在Android Studio中的某个地方键入命令?
In which directory should I run this command? 我应该在哪个目录中运行此命令?
I have gradle installed with Android Studio and I didn't set enviroments variables for gradle. 我已经在Android Studio中安装了gradle,但没有为gradle设置环境变量。

You could use the terminal from Android Studio. 您可以使用Android Studio中的终端。 It is placed at bottom and is called "terminal". 它位于底部,称为“终端”。 To use this command, you will launch at your project directory. 要使用此命令,您将在项目目录中启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM