All modules:
Compose UI test helpers for Android, desktop, and iOS: waits, matchers, scrolling, assertions, geometry, a themed rule, and device configuration overrides. Waits work on ComposeUiTest and on JUnit 4 ComposeTestRule. Add it to Compose UI tests.
Test helpers with no test-framework imports, for JVM, Android, iOS, macOS, JS, and Wasm: spies and scripted fakes, a manual clock, async waits, flow observation, layout geometry, automation IDs, and temporary files and fixtures. Add it to any test source set; because it depends only on kotlinx-coroutines-core, it can also ship in tools and apps.
Swaps Dispatchers.Main for a test dispatcher from shared commonTest code on JVM, Android, iOS, macOS, JS, and Wasm. runTestWithMain installs the dispatcher around one test, and MainDispatcherFixture pairs install() and reset() with @BeforeTest and @AfterTest. Add it to shared commonTest and any coroutine tests.
Espresso and UiAutomator helpers for Android instrumented tests: waits and matchers, UiAutomator snapshots, gestures, verified text entry, launch, diagnostics, and device settings. Add it to instrumented tests.
JUnit integration for JVM tests: MainDispatcherRule for JUnit 4 and MainDispatcherExtension for JUnit 5 install a test dispatcher as Dispatchers.Main. Add it to JVM and Android unit tests.