Skip to content

Instantly share code, notes, and snippets.

@fo2rist
Last active June 18, 2019 02:17
Show Gist options
  • Save fo2rist/b53c6d004fbe29461b74c339ea9dd504 to your computer and use it in GitHub Desktop.
Save fo2rist/b53c6d004fbe29461b74c339ea9dd504 to your computer and use it in GitHub Desktop.
Simple Espresso Test Setup / Empty Test
@RunWith(AndroidJUnit4::class)
class BaseMainActivityTest {
@get:Rule
var activityRule = ActivityTestRule(MainActivity::class.java)
protected val context: Context by lazy { activityRule.activity }
// test goes here just like this example from Espresso documentation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment