Android Turbine Testing Guide: Testing Kotlin Flows with awaitItem, awaitError & StateFlow Kotlin Flow is the standard for reactive programming in Android—but testing asynchronous streams is notoriously awkward.