Android Testing Guide
android_testing_guideAccess a comprehensive Android testing reference for unit tests, Compose UI, Espresso, ViewModel, Room, and Hilt. Call before writing any test to get guidance on setup and strategies.
Instructions
Complete Android testing reference covering: unit tests (JUnit4, MockK, Turbine, coroutines-test), Compose UI testing (ComposeTestRule, finders, actions, assertions, testTag), Espresso for View-based tests and Compose interop, ViewModel testing with MainDispatcherRule, Room in-memory DB tests, Hilt test injection (@HiltAndroidTest, @BindValue), and test pyramid strategy. Call before writing any test. Topics: setup, unit tests, compose testing, espresso, hilt testing, pyramid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Testing topic. E.g. 'unit tests', 'compose testing', 'espresso', 'hilt testing', 'pyramid'. Leave empty to list all. |