Just as Perfecto's DevTunnel feature can be used to provide real devices for the development and debugging cycle, the same feature allows the developer to run and debug his Espresso unit tests on real devices. Use the built-in Android Studio support for running Espresso unit tests to run and debug your unit tests. Simply:
- Open the device in Perfecto, in the Manual Testing view.
- Connect the device to your development station with DevTunnel.
- Use the Run or Debug icons in Android Studio, selecting your connected device in the Select Deployment Target window to run your tests.
The following video shows a simple Espresso debug session: