Skip to content

Android testing guide covering unit, Hilt integration, and Roborazzi screenshot tests for Compose UI.

CCM score
54 of 100
skills.sh installs
898
GitHub stars
1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a testing pyramid: unit tests for ViewModels and Repositories, integration tests for Room DAOs and Retrofit, and screenshot tests for Compose
  • Includes libs.versions.toml entries for JUnit 4, kotlinx-coroutines-test, Espresso, Compose UI test, Hilt Android testing, and Roborazzi
  • Provides Roborazzi setup and a Robolectric screenshot test pattern that runs on the JVM without an emulator
  • Shows Hilt injection with HiltAndroidRule and runs suites through ./gradlew test, recordRoborazziDebug, and verifyRoborazziDebug

Install

$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill android-testing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Android Testing Strategies

This skill provides expert guidance on testing modern Android applications, inspired by "Now in Android". It covers Unit Tests, Hilt Integration Tests, and Screenshot Testing.

Testing Pyramid

  1. Unit Tests: Fast, isolate logic (ViewModels, Repositories).
  2. Integration Tests: Test interactions (Room DAOs, Retrofit vs MockWebServer).
  3. UI/Screenshot Tests: Verify UI correctness (Compose).

Dependencies (libs.versions.toml)

Ensure you have the right testing dependencies.

Details

Repository
github.com/new-silvermoon/awesome-android-agent-skills
Categories
Testing & QA, Mobile Apps
First seen
Jun 3, 2026

More from new-silvermoon/awesome-android-agent-skills

All 17

Similar to Android Testing

More Testing & QA