android-kotlin-testing
CommunityBuild reliable Android Kotlin tests with Turbine and CI.
System Documentation
What problem does it solve?
This Skill solves the common pain point of writing flaky, incomplete tests for Android Kotlin applications, where missing best practices for ViewModel state testing, Compose UI semantics, and Hilt test setup lead to bugs slipping through to production and unreliable test suites.
Core Features & Use Cases
- ViewModel Unit Testing: Templates and patterns for testing ViewModel state transitions using Turbine for StateFlow validation, with guidance on using fake repositories over mocks for more reliable tests.
- Compose UI Testing: Stateless Compose component testing using test tags and semantics, avoiding flaky ViewModel-integrated screen tests.
- CI Quality Gates: Pre-configured validation steps to enforce test coverage and skill compliance before code merge, reducing regression risk.
- Use Case: For example, when building a new feature with a ViewModel that fetches data from a repository, use this Skill to write fast, reliable unit tests that catch loading, error, and success state bugs before they reach QA.
Quick Start
Use this skill to write a unit test for your Android ViewModel that verifies loading, success, and error state transitions using Turbine and fake repository implementations, and configure a CI gate to enforce test coverage before merge.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: android-kotlin-testing Download link: https://github.com/haidrrrry/compose-kotlin-agent-skills/archive/main.zip#android-kotlin-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.