I'm writing tests for my app, and one part is involving a widget. I can't find anything on the subject: it is possible to automatically test widgets with Espresso?
Asked
Active
Viewed 1,071 times
1 Answers
2
No.
Espresso is made to run tests in the process of an activity. Widgets belong to the home screen (app).
UI automator could be a solution for testing widgets (https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html)

friedger
- 645
- 7
- 21
-
Thanks! Digging into the doc – Geob-o-matic Sep 20 '16 at 21:26