This is designed to run with Android Studio with Unit Testing support enabled in Android Studio's Gradle settings.
Import the project into Android Studio by selecting Import Project
and selecting the project's build.gradle
. When prompted, you can pick the default gradle wrapper.
To run the test , open Android Studio's Build Variants pane and change the option Test Artifact
to Unit Tests
. You can then right click on Unit1AndroidAssessmentTests
and run the tests.
Your run configuration should look like this:
When finished with the tests, it should look something like
When finished with the tests, it should look something like