Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support compose #23

Closed
ber4444 opened this issue Dec 15, 2022 · 1 comment
Closed

support compose #23

ber4444 opened this issue Dec 15, 2022 · 1 comment

Comments

@ber4444
Copy link

ber4444 commented Dec 15, 2022

Could you also support androidx.compose.ui.test.IdlingResource?

@JakeWharton
Copy link
Owner

Hi! Unfortunately in the years since creating this library I have become staunchly anti-IdlingResource. The right way to write tests which are stable is to react and/or wait for changes to appear on screen before performing subsequent actions.

So, for example, if you want to sign in to an app you would enter email text, enter password text, and then click a button like normal. But then, instead of having an IdlingResource which is waiting on the background thread performing the network call, you simply wait for the next expected UI with a timeout (such as the presence of a "Home" title on a toolbar or whatever is appropriate for your app). How the app actually performed that background work to authenticate you is irrelevant and IdlingResources play whack-a-mole with async work.

As such, I won't be maintaining this library anymore and will not be adding new functionality to it. Google is wrong for pushing IdlingResource as a continued solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants