Testing Android Applications
With IntelliJ IDEA you can generate and run unit tests for your Android applications using Android Testing Framework.
When the Android project is created, IntelliJ IDEA creates the following test directories containing sample tests:
To execute unit tests, IntelliJ IDEA provides an Android-specific run configuration.
To run tests for an Android application
- Specify the tests that you want to run. Do one of the following:
- Select a run/debug configuration from the drop-down list on the main toolbar and start the test according to it.
- Monitor the test execution and view test results in the Test Runner tab of the Run tool window.