Local tests that do NOT need to be executed on an Android device
You can run the tests as follows:
- Make sure in the Run/Debug Configurations - Android JUnit - Defaults for Working directory:
$MODULE_DIR$
is set. - Select build variant "fullDebug"
- Set the Project view to Android
- Right-click on the directory "test" and select "Run tests"
Run the following command from the top of the project:
./gradlew testFullDebugUnitTest