What problem does it solve?
Writing reliable, maintainable tests for Android and Kotlin Multiplatform (KMP) apps often requires repetitive boilerplate and inconsistent patterns, leading to flaky tests and wasted development time.
Core Features & Use Cases
- Standardized Test Setup: Pre-defined configurations for JUnit5, Turbine, AssertK, and UnconfinedTestDispatcher to streamline coroutine and StateFlow testing.
- Fake Repository Patterns: Reusable in-memory fake implementations that eliminate brittle mocks for data layer unit tests.
- Compose UI & Robot Pattern: Templates for ComposeTestRule UI tests and the Robot pattern to simplify complex multi-step end-to-end test flows.
Use case: For example, use this skill to quickly write unit tests for a NoteListViewModel that verify loading states and one-time event emissions, or build maintainable E2E tests for a multi-screen note-taking app flow.
Quick Start
Use the android-testing skill to write a unit test for your ViewModel that verifies state emissions and event handling using Turbine and AssertK.