agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/testing/SKILL.md

testing

Skill2 starsChanged 5 months agoMITView on GitHub

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

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    networking

    Practical application and coding skills for Networking

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 9 projects that use this

  • Cogni-AI-OUSkill

    dotfiles

    Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.

    Also in 3 projects that use this

  • +2 more from CES-Ltd
  • +1 more from ffsshhttiikk

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 13 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 8
  2. Distinctive:

    Create fakes for behavior-focused tests.

    line 27
  3. Distinctive:

    Use coroutine test APIs and virtual time.

    line 28
  4. Distinctive:

    Add Compose UI/instrumented tests only for critical flows.

    line 29
  5. Distinctive:

    Run the relevant Gradle task and report results.

    line 30
  6. Distinctive:

    Prefer fakes over mocks when state transitions matter.

    line 35
  7. Distinctive:

    Test loading, success, empty, error and permission-denied states.

    line 36
  8. Distinctive:

    Use Firebase Emulator for rules when available.

    line 37
  9. Distinctive:

    Keep UI tests focused.

    line 38
  10. Distinctive:

    Do not assume these companion skills are installed.

    line 52
  11. Distinctive:

    Only testing happy path.

    line 78
  12. Distinctive:

    Use $super-android-kotlin-firebase to generate ViewModel and Compose UI tests.

    line 93
  13. Distinctive:

    Use $super-android-kotlin-firebase to audit missing tests in this feature.

    line 94

“Common” is measured: kept by at least 6 in 10 of the 105 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 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

./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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.