Last active
June 18, 2019 02:17
-
-
Save fo2rist/b53c6d004fbe29461b74c339ea9dd504 to your computer and use it in GitHub Desktop.
Simple Espresso Test Setup / Empty Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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