Tag: Turbine

Testing Android Flows in ViewModel with Turbine

As it is common now, the correct architecture should contain decoupled layers. Inter-layer communication between them is done by streams, or in our case, flows, in Android. To make our solutions foolproof, we should create tests around every component, and the ViewModel is no exception. The more cha...

Effortlessly Test Kotlin Flows with Turbine

Testing Kotlin Flows with runTest and the Turbine Library  Before delving into the specifics of testing Kotlin Flows, if you’re interested in a comprehensive example of Kotlin testing in practice, check out Dogiz. Kotlin’s Flow API has quickly become a popular choice amon...