java.lang.NullPointerExceptionat android.support.test.espresso.intent.Intents.intended(Intents.java:184)
at android.support.test.espresso.intent.Intents.intendednet.example.l
at androidx.test.internal.util.Checks.checkNotMainThread(Checks.java:1) at androidx.test.espresso.ViewInteraction.desugaredPerform(ViewInteraction.java:2)
at androidx
我的android espresso单元测试被阻止了,因为一些后台线程没有空闲。我如何确定哪个线程阻塞了我的应用程序的执行?android.support.test.espresso.AppNotIdleException: Looped for 246 iterations over 60 SECONDS.(DefaultFailureHandler.java:92)
at android.support.test.espresso.base.DefaultFailureHandler.handle:11
我的项目结构如下:androidTest //Espresso tests covers classes from login and registration
main //Contains我面临的问题是espresso测试,它只显示模块应用程序的代码覆盖率,而不显示其他模块的代码覆盖率。Espresso测试运行的是usecase流,比如注册,然后从其他两个模块登录和调用类,但其他两个模块的覆盖率总是为0%。我想了解espresso是如何生成代码覆盖率的,它是否类似