lundi 30 octobre 2017

How to run instumentation in specific process

Hot to specify a process in which instrumentation should run?

My Activity running in <applicationId>:processName process. But when I try to start it from my simple Espresso test I have the error:

Caused by: java.lang.RuntimeException: Intent in process <applicationId> resolved to different process <applicationId>:processName: Intent { act=android.intent.action.MAIN flg=0x14000000 cmp=applicationId/.LoginActivity }

There is multiprocess test in Espresso 3+. But It works only on Android 26. And I don't need to communicate between processes. I need test only one activity which runs in the specific process.

Aucun commentaire:

Enregistrer un commentaire