Top "Android-instrumentation" questions

Base class for implementing application instrumentation code.

The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin

I updated the AndroidStudio to version 3.1 Clean Project... and build failed The SourceSet 'instrumentTest' is not recognized by the Android …

android android-studio android-gradle-plugin android-instrumentation
Run all unit tests in Android Studio

I have this project in Android Studio : I wish to run all unit tests in all project with one click. …

android unit-testing android-studio android-instrumentation
AndroidX : No instrumentation registered! Must run under a registering instrumentation

I'm trying to run a local unit test that depends on the context, and was following this guide: https://developer.…

android unit-testing android-espresso android-instrumentation
Android: Instrumentation run failed due to 'java.lang.ClassNotFoundException': No tests found

I try to run a instrumentation test via "gradlew connectedAndroidTest". I get following error: Tests on GT-I9305 - 4.3 failed: Instrumentation …

testing gradle android-studio classnotfoundexception android-instrumentation
Cannot resolve symbol AndroidJUnit4

I'm trying to add loginfacebook for my app. But when I added a repository that is need in doing this. …

java android-studio junit4 facebook-login android-instrumentation
Ui Automator 2.0 project in Android Studio

I want to set up a project in Android Studio. However, I don't want an Android App, just the test …

android android-studio android-uiautomator android-instrumentation
Reset app state between InstrumentationTestCase runs

One of my QA engineers is supporting an app with a fairly large codebase and a lot of different SharedPreferences …

android-testing android-espresso android-instrumentation
Android Studio -- clear application data for Instrumentation Test

How can I get Android Studio (AndroidJunitRunner) to clear application data preceding an instrumentation test without manually running adb command? …

android-studio gradle android-gradle-plugin android-instrumentation
How to disable animations in code when running Espresso tests

Has anybody managed to disable animations through code when running Espresso tests? I've been trying to follow the instructions in …

android android-animation android-permissions android-espresso android-instrumentation
Wait until view become visible with IdleResource

I am writing Instrumentation tests with usage of Espresso 2.2. Flow I want to test: radioButton clicked by test onClick launches …

android android-espresso android-instrumentation