简体   繁体   中英

Android Espresso Test in multi-process app

I have recorded a Espresso Test and I'm currently trying to run it. The app I'm developing has two processes. The main process is used for background tasks and another process :ui is used for all UI.

This doesn't work well with the instrumentation test runner and I receive the following exception:

java.lang.RuntimeException: Intent in process X resolved to different process X:ui:

Is there any way to solve this? Ideally the instrumentation test runner should run in the :ui process.

如果您的目标是Android 8.0(API级别26)及更高版本,则可以使用Multiprocess Espresso

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM