# cashapp/turbine

A testing library for kotlinx.coroutines Flow

Repository: https://github.com/cashapp/turbine
Canonical: https://ross.abutalabs.com/products/turbine
Homepage: https://cashapp.github.io/turbine/docs/1.x/
Language: Kotlin
License: Apache-2.0
License Family: permissive
Last push: 2026-08-25T17:05:21+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 2226, "days_push": 8, "days_rel": 448, "gap_med": 238, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2854, forks 134 (observed 2026-08-28T04:07:25.817523+00:00)

## What it is
Turbine is a small Kotlin testing library for kotlinx.coroutines Flow. It wraps flows in a Turbine channel-based API with awaitItem/awaitComplete/awaitError assertions, timeouts, and cleanup.

## Use cases
- test kotlin coroutines flow emissions
- assert flow items and completion in unit tests
- test multiple flows concurrently in kotlin
- avoid hanging tests when a flow emits nothing
- verify flow errors in coroutine tests

## When to choose
- you write Kotlin/JVM or Android code using kotlinx.coroutines Flow and need deterministic flow tests
- you want concise flow assertions with automatic timeouts and cleanup

## When to avoid
- you test RxJava or Reactor streams rather than kotlinx.coroutines Flow
- you need end-to-end or UI testing rather than flow unit tests

## Facets
- artifact type: library
- maturity: active
- function: testing, concurrency
- domain: testing, developer-tools, programming-languages
- platform: jvm, cross-platform
- tags: kotlin, kotlinx-coroutines, flow, unit-testing, coroutines, android

## Member repositories
- cashapp/turbine (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:25.817523+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:45.306063+00:00, confidence not recorded.
  - readme: https://github.com/cashapp/turbine (fetched 2026-08-28T04:07:25.817523+00:00, sha 0295dcb748ab)
  - homepage: https://cashapp.github.io/turbine/docs/1.x/ (fetched 2026-08-29T09:52:17.172726+00:00, sha 715b44855c99)
- Data as of 2026-08-30T08:39:29.467469+00:00.
