lundi 8 août 2016

Random Espresso Tests Failing

I have a test class in which I have six espresso tests. If I run the test class, three pass, three fail.

If I run each test individually all tests pass as expected. Some of these have race conditions (api request) so I understand those and Im looking at using the idlingResource, however others do not, for example there's a noMatchingViewException android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with text: is "Sort by best match" which is incorrect as the view is there and is found when test is run on it's own, which then passes as expected.

I'm just wondering anyone has come across this and if so could you share how to fix it.

Aucun commentaire:

Enregistrer un commentaire