ir2pid
ir2pid

Reputation: 6126

Android How to Fail an espresso test

Is there an elegant way to fail an espresso test. For example, the network isn't present dialog appears, how do I stop tests in such a case and fail.

Upvotes: 1

Views: 141

Answers (1)

Testujaca Malpeczka
Testujaca Malpeczka

Reputation: 142

Try to run the UI tests in an isolation (without Network data) or mock a server using Mockito.

Upvotes: 2

Related Questions