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

Write espresso tests for todomvrx #30

Closed
gpeal opened this issue Aug 20, 2018 · 4 comments
Closed

Write espresso tests for todomvrx #30

gpeal opened this issue Aug 20, 2018 · 4 comments

Comments

@gpeal
Copy link
Collaborator

gpeal commented Aug 20, 2018

No description provided.

@gpeal gpeal closed this as completed Jan 2, 2019
@herrbert74
Copy link

herrbert74 commented Oct 23, 2019

Why was this closed? Is this possible at all? Having little experience with both Espresso and MvRx, I'm struggling to write my first Espresso test after switching to MvRx. FragmentScenario seems to be the wrong approach as the Activity needs to be MvRx specific. I couldn't make ActivityTestRule to work so far. Anybody could provide a basic example?

@elihart
Copy link
Contributor

elihart commented Oct 23, 2019

With the latest release #311 it is not necessary to have a mvrx specific activity, so FragmentScenario should work fine.

You should be able to use espresso fine with mvrx - it's just a little tedious to set states which is being improved with #282

@herrbert74
Copy link

Thanks, that's useful. I updated MvRx, but after all I managed to write tests with ActivityTestRule. We switched to Navigation components, modularization and Dagger at the same time, which made it a bit harder, that's all.

@vishalkumarsinghvi
Copy link

@herrbert74 Can you please share your todomvrx test cases, I am looking for mvrx test case & I am not getting it..

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

4 participants