IntelliJ IDEA 2016.3 Help

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

  1. Specify the tests that you want to run. Do one of the following:
  2. Select a run/debug configuration from the drop-down list on the main toolbar and start the test according to it.
  3. Monitor the test execution and view test results in the Test Runner tab of the Run tool window.

See Also

Last modified: 7 December 2016