testing-setup

Analyze Android dependencies and generate a Markdown testing strategy report.

Updated May 22, 2026
One-click install
npx skills add https://github.com/ekawijayasusilo/kmp_template --skill testing-setup-ekawijayasusilo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-setup
Source: https://github.com/ekawijayasusilo/kmp_template/tree/main/.claude/skills/testing-setup
Command: npx skills add https://github.com/ekawijayasusilo/kmp_template --skill testing-setup-ekawijayasusilo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the problem of scattered, inconsistent, or incomplete testing setups by helping you assess what you currently have and then build a structured strategy for unit, UI, screenshot, and end-to-end testing in native Android apps.

Core Features & Use Cases

  • Testing setup analysis: Identifies the current unit testing framework, mocking approach, Robolectric usage patterns, and UI test tooling (Compose UI tests vs Espresso).
  • Test infrastructure installation: Adds or aligns dependencies for JUnit, coverage (Jacoco), UI testing, Robolectric-based behavior/UI tests, screenshot testing (host or device-based), and end-to-end testing frameworks.
  • Testability refactors: Guides refactoring to introduce fakes and DI wiring so you can test ViewModels/repositories and complex UI flows without relying on hard-to-test platform components.
  • Coverage across test types: Provides a stepwise plan for unit tests, UI behavior tests (Compose semantics matchers and state restoration), navigation tests, screenshot reference generation, instrumented screenshot tests, and E2E “release candidate” journeys.

Quick Start

Ask the AI to analyze your current Android test stack, then generate a concrete testing strategy plan covering unit tests, Compose/Espresso UI tests, screenshot testing, and device-based end-to-end tests.

Frequently Asked Questions about testing-setup

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

FAQPage Schema
How do I set up an Android testing strategy for unit, UI, and end-to-end coverage?

An Android testing strategy spans unit, UI behavior, screenshot, and end-to-end coverage by analyzing project dependencies, selecting frameworks like JUnit and Robolectric, and defining where each test type lives. You get an actionable Markdown report with stepwise plans for ViewModels, repositories, and complex UI flows.

What is the best way to configure Compose UI tests and Espresso in an existing project?

Configuring Compose UI tests and Espresso involves adding or aligning testing dependencies, configuring test runners, and guiding testability refactors to introduce fakes and DI wiring. This enables testing Compose semantics matchers, state restoration, and UI behavior without relying on hard-to-test platform components.

Does Robolectric work with screenshot testing tools like Roborazzi for Android?

Robolectric works with screenshot testing tools like Roborazzi or Dropshots by enabling host-based or device-based screenshot reference generation. The testing setup adds the necessary dependencies and provides a stepwise plan for both Robolectric-based behavior tests and instrumented screenshot tests.

How do I add Jacoco code coverage reporting to an Android test infrastructure?

Adding Jacoco code coverage reporting to Android test infrastructure involves aligning build files with Jacoco dependencies and defining coverage expectations across unit, UI, and end-to-end tests. The setup ensures coverage metrics are collected and reported alongside the actionable Markdown testing strategy report.

Can I use UI Automator for end-to-end testing in a native Android app?

UI Automator can be used for end-to-end testing in a native Android app by adding the E2E runner as a dependency and defining release candidate journeys. The testing strategy report outlines where these device-based E2E tests live and how they validate complex flows across the application.

When should I refactor ViewModels and repositories for testability in Android?

You should refactor ViewModels and repositories for testability when they rely on hard-to-test platform components, preventing reliable unit and UI behavior tests. Introducing fakes and dependency injection wiring allows you to test complex UI flows and state management without actual platform dependencies.