rootstrap / android-base

Rootstrap Android Base project
https://rootstrap.com
40 stars 6 forks source link

Unit test examples with coroutines #57

Closed agustinkoll-rootstrap closed 2 years ago

agustinkoll-rootstrap commented 2 years ago

ISSUE[#]

Unit test

Description

*

Somo unit test and TestDispatcherProvider to test coroutines Added MockK lib to mock and verify suspend functions Injecting DispatcherProvider into VM's so can be mocked later

Risk

agustinkoll-rootstrap commented 2 years ago

Looking good, I'd be careful about the use of experimental features, we must be aware of the changes for when it stops being experimental and update the version.

Yes for now is the recommended way, but we need to be aware