# Testing

> Use for Android unit tests, fake repositories, coroutine tests, Flow tests, Compose UI tests, instrumented tests, ADB-driven tests and Firebase Emulator tests.

- **Type:** Skill
- **Install:** `agentstack add skill-gdvega-super-android-kotlin-firebase-skill-testing`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [GDvega](https://agentstack.voostack.com/s/gdvega)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [GDvega](https://github.com/GDvega)
- **Source:** https://github.com/GDvega/super-android-kotlin-firebase-skill/tree/main/skills/testing

## Install

```sh
agentstack add skill-gdvega-super-android-kotlin-firebase-skill-testing
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Purpose

Create high-value tests with low fragility across Android layers.

# When to use

- Adding or reviewing tests.
- Testing ViewModels, Flow or coroutines.
- Testing Compose UI or accessibility.
- Testing Firebase rules/functions with Emulator Suite.

# Inputs to inspect

- Behavior under test.
- Existing test dependencies and source sets.
- Repository fakes or data builders.
- Gradle tasks and CI constraints.

# Required workflow

1. Choose the lowest useful test level first.
2. Create fakes for behavior-focused tests.
3. Use coroutine test APIs and virtual time.
4. Add Compose UI/instrumented tests only for critical flows.
5. Run the relevant Gradle task and report results.

# Rules

- No Thread.sleep.
- Prefer fakes over mocks when state transitions matter.
- Test loading, success, empty, error and permission-denied states.
- Use Firebase Emulator for rules when available.
- Keep UI tests focused.

# Related existing skills

## Local skills to invoke

- debugging
- gradle-build
- firebase-emulator-ci
- jetpack-compose
- code-review-refactor

## External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult [Companion Skills](../../docs/COMPANION_SKILLS.md) for install and verification commands.

- skydoves/android-testing-skills — use for deeper Android or Compose UI testing, semantics, assertions or test workflow guidance.
- android/skills — use for official Android workflow alignment around edge-to-edge, adaptive UI, Navigation 3, R8, AGP or testing setup.

# Files commonly touched

- `src/test`
- `src/androidTest`
- `ViewModel tests`
- `repository tests`
- `Compose tests`
- `rules tests`

# Commands to validate

```bash
./gradlew test
./gradlew connectedDebugAndroidTest
./gradlew lint
firebase emulators:exec "npm test"
adb logcat
```

# Common mistakes to avoid

- Only testing happy path.
- Using UI tests for pure logic.
- Over-mocking repositories.
- Ignoring source set setup.

# Checklist

- Test level chosen.
- Fakes/data builders exist.
- Coroutine/Flow deterministic.
- Firebase rules tested when relevant.
- Command executed or explained.

# Example prompts

- Use $super-android-kotlin-firebase to generate ViewModel and Compose UI tests.
- Use $super-android-kotlin-firebase to audit missing tests in this feature.

# Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

# References

- ../../docs/audits/FUENTES_LOCALES.md
- references/android-testing-strategy.md
- templates/unit-test-template.md
- templates/compose-ui-test-template.md

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [GDvega](https://github.com/GDvega)
- **Source:** [GDvega/super-android-kotlin-firebase-skill](https://github.com/GDvega/super-android-kotlin-firebase-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-gdvega-super-android-kotlin-firebase-skill-testing
- Seller: https://agentstack.voostack.com/s/gdvega
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
