Android Testing Patterns

0•

Implements standardized Android testing patterns using JUnit, MockK, Turbine, and Compose for high-quality mobile applications.

The android-testing skill provides a comprehensive playbook for Claude to write, update, and debug Android tests with industry-standard libraries. It enforces best practices such as utilizing runTest for coroutines, Turbine for Flow verification, and MockK for unit testing, while offering specific guidance for Compose UI tests and Hilt-aware instrumentation. By loading this skill, developers ensure their AI-generated tests follow consistent patterns for ViewModels, UseCases, and analytics tracking, resulting in a more maintainable and robust codebase.

主な機能

01Standardized JUnit and MockK unit testing patterns for UseCases
02Coroutine and Flow testing using runTest and Turbine integration
03Compose UI testing with a focus on semantic matchers
04Hilt-integrated instrumentation tests using @BindValue
05Automated analytics verification patterns in ViewModel tests
060 GitHub stars

ユースケース

01Generating unit tests for ViewModels and UseCases with complex coroutine logic
02Creating UI tests for Jetpack Compose screens that follow accessibility best practices
03Setting up instrumented tests in Hilt-enabled projects to verify repository behavior