android-testing

Guide Android teams in implementing Kotlin/Jetpack Compose tests with Hilt and Roborazzi.

1|Updated Sep 7, 2025
One-click install
npx skills add https://github.com/sahuadarsh0/Wallet --skill android-testing-sahuadarsh0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-testing
Source: https://github.com/sahuadarsh0/Wallet/tree/main/.cursor/skills/android-testing
Command: npx skills add https://github.com/sahuadarsh0/Wallet --skill android-testing-sahuadarsh0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured approach to testing Android applications, helping teams deliver robust, reliable apps by covering unit, integration, and UI validation.

Core Features & Use Cases

  • Unit Tests: Validate logic in isolation (ViewModels, Repositories) with fast feedback.
  • Hilt Integration Tests: Verify dependency injection wiring and real-world component interactions.
  • Screenshot Tests: Use Roborazzi for visual regression testing on the JVM to ensure UI consistency across changes.

Quick Start

Set up the recommended testing dependencies and add a small sample test suite that exercises a ViewModel, a Hilt integration, and a UI screen.

Frequently Asked Questions about android-testing

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

FAQPage Schema
How do I set up testing for Jetpack Compose apps with Hilt and Roborazzi?

Set up Android testing by configuring recommended testing dependencies to enable unit tests for ViewModels, Hilt integration tests, and Roborazzi screenshot tests for UI validation.

What is the best way to run visual regression tests for Android UI on the JVM?

Use Roborazzi for visual regression testing on the JVM to capture and validate UI screenshots, ensuring visual consistency across changes without requiring an emulator.

How do I write Hilt integration tests to verify dependency injection wiring?

Hilt integration tests verify dependency injection wiring and real-world component interactions by configuring test components that validate how dependencies are provided and injected across Android app modules.

When do I need unit tests versus integration tests for Android ViewModels?

Unit tests validate logic in isolation for fast feedback on ViewModels and Repositories, whereas integration tests verify real-world component interactions and dependency wiring across broader application modules.

What project structure is recommended for end-to-end Android testing workflows?

A recommended project structure for end-to-end testing organizes unit, integration, and UI tests into distinct modules, specifying dependency setup and test execution paths to enable robust testing workflows.