The Android Testing Support Library provides an extensive framework for testing Android apps. This library provides a set of APIs that allow you to quickly build and run test code for your apps, including JUnit 4 and functional user interface (UI) tests. You can run tests created using these APIs from the Android Studio IDE or from the command line.
Use Espresso to write concise, beautiful, and reliable Android UI tests.
Android JUnit Runner
AndroidJUnitRunner is a new unbundled test runner for Android. It features:
- JUnit4 support
- Instrumentation Registry
- Test Filters
- Test timeouts
- Sharding of tests
RunListenersupport to hook into the test run life-cycle
- Activity and Application life-cycle monitoring
- Intent Monitoring and Stubbing
With the Android Testing Support Library we provide a set of JUnit rules to be used with the Android JUnit Runner. JUnit rules provide more flexibility and reduce the boilerplate code required in tests.
UI Automator is a UI testing framework suitable for cross-app functional UI testing across system and installed apps.