testing

Guide Android teams to implement unit, integration, and UI test suites with Kotlin.

127|8|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/hanamizuki/solopreneur --skill testing-hanamizuki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/hanamizuki/solopreneur/tree/main/plugins/android-dev/skills/testing
Command: npx skills add https://github.com/hanamizuki/solopreneur --skill testing-hanamizuki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides comprehensive guidance to implement robust Android testing strategies across unit, integration, and UI layers, helping teams improve reliability and speed.

Core Features & Use Cases

  • Unified testing pyramid guidance covering Unit, Integration, and UI/Screenshot tests.
  • Practical setup tips for JUnit, Hilt, Robolectric, and Compose UI tests with realistic examples.
  • Use Case: validate ViewModels, DAOs, and UI states across test suites in real projects.

Quick Start

Apply the testing strategy by adding unit, integration, and UI tests to your Android module and running the full test suite.

Frequently Asked Questions about testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure an Android testing pyramid across unit, integration, and UI layers?

Structure an Android testing pyramid by distributing unit, integration, and UI tests across modules. Apply JUnit, Robolectric, and Compose UI tests to validate ViewModels, DAOs, and UI states for fast, reproducible CI feedback.

How does Robolectric work with Hilt for Android integration testing?

Robolectric works with Hilt by running local integration tests without an emulator, allowing DI configuration to validate ViewModels and DAOs. Use this combination to execute realistic Android component tests quickly across CI environments.

Can I test Jetpack Compose UI states using this testing strategy?

Yes, you can test Jetpack Compose UI states using this strategy. The guidance covers practical Compose UI test setups to validate UI components and states, ensuring reliable UI behavior across different test suites.

What's the best way to set up reproducible Android test execution for CI?

The best way to set up reproducible Android test execution is applying a unified test suite with clear dependency management. Configure JUnit and Robolectric tests to run locally, ensuring fast and consistent feedback across CI pipelines.

Does this Android testing approach require specific frameworks for Room and Retrofit?

This Android testing approach supports projects using Room and Retrofit. It applies practical setup tips to validate DAOs and network interactions, ensuring realistic integration tests across your existing tech stack.