Skip to content
OpenSmartRoute
Skillv1.0.0

android-testing-unit

Write fast, focused Android unit tests for reducers, use cases, repositories, and lifecycle-safe state holders.

by krutikjain(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from krutikjain/android-agent-skills (skills/android-testing-unit/SKILL.md). Install upstream with npx skills add krutikjain/android-agent-skills --skill android-testing-unit. Copyright stays with the author.

Android Testing Unit

When To Use

  • Use this skill when the request is about: android unit test strategy, test viewmodel reducer android, repository unit tests android.
  • Primary outcome: Write fast, focused Android unit tests for reducers, use cases, repositories, and lifecycle-safe state holders.
  • Handoff skills when the scope expands:
  • android-testing-ui
  • android-ui-states-validation

Workflow

  1. Scope the risk surface: correctness, security, performance, test depth, or release automation.
  2. Pick the narrowest verification strategy that still catches the likely regressions.
  3. Instrument the workflow so failures are actionable rather than just red.
  4. Run the relevant checks on the showcase apps and packaging outputs.
  5. Capture any residual risk with explicit follow-up work and owner skills.

Guardrails

  • Prefer reproducible checks in CI over one-off local heroics.
  • Fail with a precise remediation path instead of a vague quality gate.
  • Keep secrets, signing material, and production credentials out of examples and fixtures.
  • Treat performance and security work as engineering tasks with evidence, not folklore.

Anti-Patterns

  • Adding more tests without increasing signal.
  • Shipping benchmarks or security scans that no one can reproduce.
  • Hard-coding release credentials into build logic.
  • Using synthetic metrics with no user-impact interpretation.

Examples

Happy path

  • Scenario: Cover reducer and formatter logic in both fixture apps with focused local tests.
  • Command: cd examples/orbittasks-compose && ./gradlew :app:testDebugUnitTest && cd ../orbittasks-xml && ./gradlew :app:testDebugUnitTest

Edge case

  • Scenario: Mock sync failures and permission-denied branches without instrumentation.
  • Command: cd examples/orbittasks-compose && ./gradlew :app:testDebugUnitTest

Failure recovery

  • Scenario: Separate unit-testing requests from UI testing or general architecture cleanup.
  • Command: python3 scripts/eval_triggers.py --skill android-testing-unit

Done Checklist

  • The implementation path is explicit, minimal, and tied to the right Android surface.
  • Relevant example commands and benchmark prompts have been exercised or updated.
  • Handoffs to adjacent skills are documented when the request crosses boundaries.
  • Official references cover the chosen pattern and the main migration or troubleshooting path.

Official References

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/krutikjain-android-agent-skills-android-testing-unit/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

krutikjain-android-agent-skills-android-testing-unit.ocm.jsonjson
{
  "ocm": "1",
  "id": "krutikjain-android-agent-skills-android-testing-unit",
  "kind": "skill",
  "name": "android-testing-unit",
  "description": "Write fast, focused Android unit tests for reducers, use cases, repositories, and lifecycle-safe state holders.",
  "publisher": "krutikjain",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "android",
      "testing",
      "unit-tests",
      "verification",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Write fast, focused Android unit tests for reducers, use cases, repositories, and lifecycle-safe state holders."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/krutikjain/android-agent-skills",
      "path": "skills/android-testing-unit/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/krutikjain/android-agent-skills/blob/HEAD/skills/android-testing-unit/SKILL.md",
      "key": "krutikjain/android-agent-skills/skills/android-testing-unit/SKILL.md"
    }
  },
  "instructions": "# Android Testing Unit\n\n## When To Use\n- Use this skill when the request is about: android unit test strategy, test viewmodel reducer android, repository unit tests android.\n- Primary outcome: Write fast, focused Android unit tests for reducers, use cases, repositories, and lifecycle-safe state holders.\n- Handoff skills when the scope expands:\n- `android-testing-ui`\n- `android-ui-states-validation`\n\n## Workflow\n1. Scope the risk surface: correctness, security, performance, test depth, or release automation.\n2. Pick the narrowest verification strategy that still catches the likely regressions.\n",
  "cost": {
    "context_tokens": 730
  }
}

Fetch it by URL: GET /api/v1/registry/krutikjain-android-agent-skills-android-testing-unit/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.