Turbine — small Kotlin testing library for kotlinx.coroutines Flows.
“编程与软件开发”领域的一个 Skill。已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
完整描述
Turbine — small Kotlin testing library for kotlinx.coroutines Flows. Provides
ergonomic API to test Flow emissions deterministically: awaitItem, expectMostRecentItem,
awaitComplete, awaitError. Works with StateFlow, SharedFlow, Channel-backed flows,
combine/map/debounce. KMP-friendly.
USE WHEN: user mentions "Turbine", "app.cash.turbine", ".test {}",
"awaitItem", "Flow testing", "StateFlow test", "SharedFlow test",
"expectMostRecentItem", "cancelAndIgnoreRemainingEvents"
DO NOT USE FOR: Mobile E2E - use `testing/maestro`
DO NOT USE FOR: Compose snapshot - use `testing/compose-snapshot`
DO NOT USE FOR: Generic Kotlin testing - use `testing/kotest`
DO NOT USE FOR: Suspend function (non-Flow) testing - use `kotlinx-coroutines-test` directly