# testing-setup

> Claude/Codex skill by [@android](https://omgskills.com/library/android/index.md) · 10k stars · Updated 2026-10-26

Analyze and create a testing strategy for Android apps - install testing libraries, set up test infrastructure, create harnesses for unit tests, UI tests, screenshot tests, and end-to-end tests.

Tags: skills

## Install

```sh
git clone https://github.com/android/skills /tmp/skills && ln -s /tmp/skills/testing/testing-setup ~/.claude/skills/testing-setup
```

## From README

Step 1: Analyze the current testing To understand the testing of an existing project, look for these dependencies in the libs.versions.toml file, or build files: Dependency Injection framework used. For example, Hilt, Koin, Anvil, or vanilla Dagger. Unit (local) testing framework this project uses. For example, JUnit4 or JUnit5. Mocking framework (if any) used for unit tests, and for instrumented and UI tests. For example, Mockito or Mockk. Robolectric. Identify which of these three uses apply: Used in unit tests to have fakes for platform entities To run behavior UI tests without a device or emulator. For example, used to run Espresso or Compose tests. To do screenshot testing with Roborazzi Is the app 100% Compose, Views or hybrid? Behavior UI tests: Compose Tests (androidx.compose.ui:ui-test-) Espresso Tests for Views. Check for wrappers such as Kaspresso. Dependencies: androidx.test.espresso:espresso-core, androidx.test:runner, androidx.test:rules. Screenshot tests.

## Links

- HTML page: https://omgskills.com/library/android/skills/testing-setup/
- GitHub: https://github.com/android/skills
- Author: [@android](https://omgskills.com/library/android/index.md)

## More from this repo

- [android-cli](https://omgskills.com/library/android/skills/android-cli/index.md) — Provides instructions for installing and using the \`android\` CLI.
   - [@android](https://omgskills.com/library/android/index.md) · 10k stars
- [android-intent-security](https://omgskills.com/library/android/skills/android-intent-security/index.md) — Best practices for Android Intent security.
   - [@android](https://omgskills.com/library/android/index.md) · 10k stars
- [navigation-3](https://omgskills.com/library/android/skills/navigation-3/index.md) — Learn how to install and migrate to Jetpack Navigation 3, and how to implement features and patterns such as deep...
   - [@android](https://omgskills.com/library/android/index.md) · 10k stars
