Has anyone been able to get tests to run in Android Studio (from the GUI and not terminal), I have been unable to run tests from the GUI.
Everytime I try to run tests through the GUI I just get the following message:
I am able to run the tests from terminal using the following command:
./gradlew connectedAndroidTest
I am running Android Studio 0.5.2 with Gradle 1.11 with Plugin 0.9.0 on Mac OSX
My project structure is as follows;
MyProject/
src/
androidTest/
java/
com.myproject.app.test/
… (tests source code) …
main/
java/
com.myproject.app/
… (source code) …
res/
… (resources code) …
build.gradle
My build.gradle file looks similar to the following:
…
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
versionCode 12
versionName "2.0"
minSdkVersion 9
targetSdkVersion 19
testPackageName "com.test.foo"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}
}
…
If anyone has any suggestions, I will be more than happy to here them.
question from:
https://stackoverflow.com/questions/22582021/android-studio-no-tests-were-found 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…