Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

testing-setup

Skill by android

Analyzes and sets up a testing strategy for Android apps. It installs test libraries and builds harnesses for unit, UI, screenshot and end-to-end tests.

  • Score 94
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install testing-setup

Built from the published package, never by AI.

git clone --depth 1 https://github.com/android/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/testing/testing-setup ~/.claude/skills/testing-setup

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install testing-setup in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

testing-setup is an agent skill from Google LLC for analyzing and building a testing strategy in Android apps. It starts by reviewing the existing stack in libs.versions.toml or build files, including the dependency injection framework, unit test framework, mocking library, Robolectric use, and whether the UI uses Compose, Views or both. It then guides the installation of missing frameworks such as JUnit4, JaCoCo, Espresso or Compose testing APIs, Robolectric and Dropshots, and helps create fakes and test harnesses.

The skill is for Android developers who want a structured test setup. It describes where unit, UI, database, navigation, screenshot and end-to-end tests belong, and suggests keeping end-to-end tests to about 5% of all tests. It can produce a Markdown analysis report and, if the user agrees, document the strategy in docs/testing.md and AGENTS.md.

Written from the project's SKILL.md and checked against it.

What it can do

  • Analyze testing setupReviews dependencies in libs.versions.toml or build files and generates a Markdown report.
  • Set up dependency injection for testsInstalls Hilt for non-multiplatform apps and asks about Koin or kotlin-inject for multiplatform apps.
  • Install test frameworksInstalls JUnit4, JaCoCo, Espresso or Compose testing APIs, Robolectric and Dropshots where needed.
  • Create fakes for unit testsAdds interfaces with fake implementations, and mocks dependencies only when fakes are not possible.
  • Configure screenshot testsSets up Compose Preview Screenshot Testing, choosing the setup based on the project's AGP version.
  • Plan navigation testsDefines a suite covering back handling, deeplinks and multiple backstack patterns.
  • Write end-to-end testsCovers big user journeys with Compose Test APIs or Espresso, and UI Automator for system features.
  • Simulate window sizesUses DeviceConfigurationOverride to simulate window sizes and font scales for Compose layouts.
  • Add JaCoCo coverageAdds the jacoco plugin to each module that contains tests for local coverage.

What you need

  • An Android app project
  • Gradle build files such as libs.versions.toml

Try asking

  • Analyze the testing setup of this Android project and write a Markdown report.
  • Set up Dropshots screenshot tests for one feature in this Android app.
  • Add JaCoCo coverage to every module that contains tests.

Good to know

  • Lower AGP versions use a deprecated standalone screenshot plugin.
  • The skill does not upgrade AGP; upgrades are left as a separate decision.
  • Screenshots of system UI such as notifications need a device.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: testing/testing-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/android/develop/ui/compose/testing/common-patterns.md15 KB
  • references/android/studio/preview/compose-screenshot-testing-with-testsuites.md7 KB
  • references/android/studio/preview/compose-screenshot-testing.md13 KB
  • references/android/training/dependency-injection/hilt-testing.md15 KB

Alternatives to testing-setup

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

testing-setup: common questions

Does testing-setup upgrade AGP for screenshot tests?

No. The source says not to upgrade AGP as part of setting up screenshot tests, and to leave any upgrade as a separate decision.

Which classes get unit tests?

Unit tests are for files with business logic such as ViewModels, Repositories and DAOs. The source says not to create them for Activities, Compose layouts or dependency injection configuration files.

Where are UI tests placed?

Espresso and Compose UI tests go in the test sourceset because they run with Robolectric. Instrumented tests go in androidTest.

How do I install testing-setup?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is testing-setup free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is testing-setup safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to testing-setup?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

testing-setup Install

Add to stack

Loading.