etiennelenhart / Eiffel

Redux-inspired Android architecture library leveraging Architecture Components and Kotlin Coroutines
MIT License
211 stars 14 forks source link

Function that allows testing an interceptions chain without an 'EiffelViewModel' #113

Closed etiennelenhart closed 5 years ago

etiennelenhart commented 5 years ago

Currently, in order to unit test a chain of interceptions one has to create an instance of the corresponding view model, dispatch an action and indirectly test correct behavior by checking the emitted state. Eiffel should provide a testInterceptions function that allows testing a given chain without a view model by simply returning the resulting Action.