https://developer.android.com/agents/skills/testing/testing-setup/skill

Community

Design a complete Android testing strategy

Authorfornewid
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you inventory an existing Android project's testing setup and then systematically add or improve the missing frameworks, rules, test structure, and screenshot/behavior/E2E coverage so your tests are consistent and maintainable.

Core Features & Use Cases

  • Analyze the current testing stack by inspecting dependency declarations (e.g., libs.versions.toml and Gradle files) to identify DI, unit/UI/instrumented testing, mocking, Robolectric, and screenshot tooling.
  • Install and configure test frameworks for local unit tests, instrumented tests, UI tests, screenshot tests, and end-to-end testing based on what the app uses (Compose, Views, or hybrid) and what test types are requested.
  • Refactor for testability using fakes and dependency injection to isolate Android dependencies and improve speed/reliability of UI behavior and scenario testing.
  • Create the right kinds of tests across business logic unit tests, UI behavior tests (Compose semantics/testTags or Espresso interactions), navigation tests, database tests (in-memory with SQLite), screenshot coverage, and a small set of end-to-end journeys.
  • Validate test execution context by placing UI tests in the correct sourcesets (test vs androidTest) so Robolectric and instrumented runs behave as intended.

Quick Start

Tell the assistant what testing frameworks and UI approach (Compose, Views, or hybrid) your project uses, and ask it to generate a Markdown report of the current testing setup analysis and the recommended setup changes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: https://developer.android.com/agents/skills/testing/testing-setup/skill
Download link: https://github.com/fornewid/android-developers-changelog/archive/main.zip#https-developer-android-com-agents-skills-testing-testing-setup-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.