I'm following the dev guide here:
https://developer.android.com/guide/components/activities/testing
and have a test class like:
@RunWith(AndroidJUnit4::class)
class MyTestSuite {
@get:Rule var activityScenarioRule = activityScenarioRule<MyActivity>()
@Test fun testEvent() {
val scenario = activityScenarioRule.scenario
}
}
the method activityScenarioRule<T>()
is not defined. What dependency do I need? Also, what is the best way to determine which dependencies to add when reading these docs?