Wednesday, 29 May 2019

Running Espresso tests with ADB without opening/closing app?

I'd like to install and start an Android app with:

adb install path_to_apk
adb shell am start -a mainActivityAPP

and then run Espresso tests with:

adb shell am instrument -w <test_package_name>/<runner_class>

How do I prevent ActivityScenarioRule from launching a given activity before tests start and closing after tests?



from Running Espresso tests with ADB without opening/closing app?

No comments:

Post a Comment