Skip to content
Alexey Petrushin edited this page Jan 10, 2017 · 1 revision

In sanbox we intently added tests to cover Presenter and Model layers (via unit testing), also we have added instrumentation tests to test overall functionality.

Currently there are tests covering Users, Feed and Repos features which are located in test and androidTest folders.

To work on unit or instrumentation tests in Android Studio switch the Test Artifact in the Build Variants view. Good explanation how to do this you can find here.

Also you can use these gradle commands:

  • To run unit tests - gradlew test
  • To run instrumentation tests - gradlew connectedCheck

To read more about tests you can use these links: 1, 2

Clone this wiki locally