It is impossible that the test does not help speed up. Espresso can synchronize all test operations with the application under test. By default, Espresso waits for user interface events in the current message queue to process and, by default, AsyncTasks to complete before proceeding to the next test operation. However, if this is not enough for your application, you can tell the espresso when it is idle and when not. For this you need:
- Add the IdlingResource interface.
- Register one or more of your IdlingResource (s) with Espresso by calling
Espresso.registerIdlingResource in the test setup.
If you need more help, ask me.
source share