instrumented-test

Android Kotlin Espresso asserting intended activity in the unit test is throwing error

白昼怎懂夜的黑 提交于 2019-12-24 11:29:42
问题 I am developing an Android application. I am adding instrumented tests to my application and testing if an activity is launched using Espresso. But I am getting error in asserting that an activity is launched using the Espresso test framework. I added the following express packages into my app gradle androidTestImplementation "androidx.test.espresso:espresso-core:$expressoVersion" androidTestImplementation "androidx.test.espresso:espresso-intents:$expressoVersion" This is my activity class