vendredi 23 mars 2018

Gradle: How to run espresso instrumentation test cases on a particular device

I am using gradle to run my espresso test cases -

./gradlew connectedAndroidTest

The tests run on all the devices attached to my machine. I want to run only on a particular device. Let's say I have an emulator and a real device connected but I want to execute all of my test cases only on emulator (using gradle command line and not using Android Studio). I searched for this a lot but can't find any solution.

Can somebody please help ?

Aucun commentaire:

Enregistrer un commentaire