unit-test-android

Community

Reliable Android unit tests, made deterministic.

Authorsunzhk
Version1.0.0
Installs0

System Documentation

What problem does it solve?

本技能帮助 Android 项目建立与维护可重复、可验证的单元测试体系,明确本地单元测试与仪器化测试的边界,提供可替换的依赖与测试改造建议。

Core Features & Use Cases

  • 本地单元测试 vs 仪器化测试的明确区分与使用场景
  • 通过注入依赖、使用 fake/stub/mock 提升可测试性
  • 给出 Given-When-Then / Arrange-Act-Assert 风格的测试编写规范
  • 测试放置规范:本地测试放在 module/src/test,仪器化测试放在 module/src/androidTest
  • 提供可维护的测试边界和错误处理思路

Quick Start

在 Android 模块中将单元测试放在 module/src/test,仪器化测试放在 module/src/androidTest,然后开始编写聚焦的测试。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: unit-test-android
Download link: https://github.com/sunzhk/shared-skills/archive/main.zip#unit-test-android

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.