android-testing

Implement Android unit, integration, Hilt, and Roborazzi screenshot tests.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/siddhantparadox/codexAndroidApp --skill android-testing-siddhantparadox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-testing
Source: https://github.com/siddhantparadox/codexAndroidApp/tree/main/.agents/skills/android-testing
Command: npx skills add https://github.com/siddhantparadox/codexAndroidApp --skill android-testing-siddhantparadox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive strategy for testing Android applications, ensuring code quality and UI stability through various testing methodologies.

Core Features & Use Cases

  • Unit Testing: Focuses on isolating and testing individual components like ViewModels and Repositories.
  • Integration Testing: Verifies the interaction between different components, such as Room DAOs or Retrofit services.
  • Screenshot Testing: Utilizes Roborazzi for visual regression testing of UI elements, ensuring no unintended visual changes.
  • Hilt Testing: Facilitates dependency injection in tests for robust integration testing.

Quick Start

Run the Gradle command to record new screenshot tests for the debug build.

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 Roborazzi screenshot tests for my Android app?

To set up Roborazzi screenshot tests, you configure dependency management via libs.versions.toml and run the Gradle command to record new screenshot tests for the debug build. This visual regression testing ensures no unintended UI changes occur across your Android components.

What is the best way to test Android ViewModels and Repositories in isolation?

Unit testing is the best way to test Android ViewModels and Repositories in isolation. This strategy focuses on isolating individual components to verify their independent logic, ensuring code quality without relying on broader Android framework dependencies or external service interactions.

How does Hilt testing work for Android integration tests?

Hilt testing works by using HiltAndroidRule to facilitate dependency injection within your test environment. This setup allows you to inject mock or real dependencies seamlessly, enabling robust integration testing that verifies interactions between different Android components like Room DAOs.

Can I manage Android testing dependencies using libs.versions.toml?

Yes, you can manage Android testing dependencies using libs.versions.toml. This approach centralizes your version catalog, allowing consistent dependency management for unit, integration, Hilt, and Roborazzi screenshot tests across your entire Android project configuration.

When do I need integration tests for Android Room DAOs or Retrofit services?

You need integration tests for Android Room DAOs or Retrofit services when you must verify the actual interaction between different components. This testing ensures your database operations and network requests function correctly together, catching interface issues that isolated unit tests cannot detect.

What Gradle command records new screenshot tests for an Android debug build?

The Gradle command to record new screenshot tests for the debug build generates baseline images for your UI elements. Utilizing Roborazzi, this command captures current UI states, allowing future test runs to compare against these screenshots to detect visual regressions.