A test suite is a collection of tests. We will show you how to create a test collection. Create a test to represent the container for collection. Let's call it MainSuite
:
package com.journaler import org.junit.runner.RunWith import org.junit.runners.Suite @RunWith(Suite::class) @Suite.SuiteClasses( DummyTest::class, MainServiceTest::class ) class MainSuite
Repeat the procedure we did for the instrumentation test from our example to run your test suite.
Testing the UI can help us prevent the user from discovering unexpected situations, crashing the application, or getting poor performance. We strongly recommend you to write UI tests so you are sure your UI performs as expected. For this purpose, we will introduce the Espresso Framework.
First of all, we will add the dependency for it as follows:
... compile 'com.android.support.test.espresso:espresso-core:2.2.2' androidTestCompile 'com.android...