mosby icon indicating copy to clipboard operation
mosby copied to clipboard

MVI test sample

Open dominikmicuta opened this issue 7 years ago • 4 comments

@sockeqwe please add instrumental / espresso test to MVI sample. You talked about it in Fragmented podcast and its hard to imagine and implement the intercepting part of the view without any guidance.

dominikmicuta avatar Dec 03 '17 08:12 dominikmicuta

Yes, will do so ... Unfortunately, I wanted to keep things simple and haven't used Dagger. Now for the MVI intercepting part it may be easier to use dagger. So perhaps I have to migrate the sample app to dagger before.

In the meantime you can take a look at this presentation I gave earlier this year:

https://speakerdeck.com/sockeqwe/reactive-statemanagement-with-model-view-intent

The testing part begins at slide number 92.

sockeqwe avatar Dec 03 '17 10:12 sockeqwe

Perfect! Thanks for the link. I will go through the presentation. Maybe sample could have also things like: navigation that don`t change the state, navigation that is emitted as part of the business logic, validation of inputs etc. But as you already mentioned, this isn't really the scope of MVI. I just wonder how this looks like in your projects.

dominikmicuta avatar Dec 03 '17 10:12 dominikmicuta

I'm looking forward to it!

lucamtudor avatar Feb 09 '18 22:02 lucamtudor

Sorry, I still havent found time to do it. In the mean time you may find this useful: https://www.youtube.com/watch?v=osM-1z5tJ4g&index=27&list=PLr5cF6ekyIDgWee0wtwMKSGcoMvt5fkn_&t=314s

sockeqwe avatar Feb 10 '18 05:02 sockeqwe