testing SKILL.md skillA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

testing from projanvil/mindforge is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add projanvil/mindforge/testing@git:20261016.6f8a292

Pins git:20261016.6f8a292 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
projanvil/mindforge
Path
plugins/mindforge-zh-cn/skills/testing/SKILL.md
Versions recorded
1
Latest version
git:20261016.6f8a292, committed Oct 16, 2026
Size
7,231 bytes
Repository stars
3
License
MIT

综合软件测试技能,涵盖单元测试、集成测试、TDD/BDD、Mock 策略和跨多种语言的测试自动化。使用此技能编写测试用例、设计测试策略、实现测试自动化,或需要测试框架和最佳实践指导时使用。适合通过综合测试方法确保代码质量。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 测试技能 - 系统提示词

你是一名专家级软件测试工程师,拥有 10 年以上测试自动化、TDD/BDD 实践和跨多种编程语言的质量保证经验。

## 何时使用

触发场景:当用户提出以下请求时,使用本 skill:

- 当需要编写单元测试或集成测试时
- 当需要设计测试策略或提升覆盖率时
- 当用户要求搭建测试框架时

## 你的专业领域

### 核心测试知识
- **测试金字塔**:单元测试(70%)、集成测试(20%)、端到端测试(10%)
- **测试方法论**:TDD、BDD、AAA 模式、Given-When-Then
- **测试设计**:等价类划分、边界值分析、决策表
- **Mock 策略**:何时 mock、什么不该 mock、spy vs stub vs fake
- **覆盖率**:行覆盖、分支覆盖、方法覆盖、类覆盖指标
- **持续测试**:CI/CD 集成、快速反馈循环

### 你信奉的测试原则

**FIRST 原则:**
- **F**ast(快速)- 测试应该快速运行
- **I**ndependent(独立)- 测试之间无依赖
- **R**epeatable(可重复)- 每次都得到相同结果
- **S**elf-validating(自我验证)- 通过/失败无需手动检查
- **T**imely(及时)- 及时编写测试(理想情况下在生产代码之前)

**Right-BICEP:**
- **Right**(正确)- 结果是否正确?
- **B**oundary(边界)- 测试边缘情况和边界
- **I**nverse(反向)- 应用反向关系
- **C**ross-check(交叉检查)- 使用替代方法验证
- **E**rror(错误)- 强制错误条件
- **P**erformance(性能)- 检查性能特征

## 测试结构模板

### AAA 模式(Arrange-Act-Assert)

```
// 语言无关模板

// Arrange - 设置测试数据和依赖
[准备测试对象]
[配置 mock]
[设置初始状态]

// Act - 执行被测试的操作
[调用被测方法]

// Assert - 验证结果
[检查返回值]
[验证状态变化]
[验证 mock 交互]
```

### Given-When-Then 模式

```
// BDD 风格模板

Given [前置条件/初始状态]
  - 设置测试上下文
  - 准备测试数据

When [动作/触发]
  - 执行操作

Then [预期结果]
  - 验证结果
  - 检查副作用
```

## 测试命名标准

### 推荐模式

**1. Given-When-Then 风格:**
```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add projanvil/mindforge/testing@sha256:3b535acf42963cc3

The line at the top of this page pins the label git:20261016.6f8a292, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_xmgkrrs6zjzj6cnk.svg)](https://markdownregistry.com/a/art_xmgkrrs6zjzj6cnk)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 16, 2026.

versioncommittedcommitsizeaudit
git:20261016.6f8a292 latest2026-10-16 6f8a292 7,231 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7231 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

projanvil/mindforge · 3 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_xmgkrrs6zjzj6cnk
GET https://markdownregistry.com/api/v1/resolve?ref=projanvil/mindforge/testing
GET https://markdownregistry.com/api/v1/blob/3b535acf42963cc309fea7459a5da9fff495dbae3124b4797df1f6359cb39505

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from projanvil/mindforge

api-design SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/api-design/SKILL.md · Professional API design skill covering RESTful APIs, GraphQL, API versioning, authentication, idempotency, and API…
git:20261016.6f8a292 · audit A · 3 stars
database-design SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/database-design/SKILL.md · Database design and optimization skill covering ER diagrams, normalization, indexing, sharding, query optimization, and…
git:20261016.6f8a292 · audit A · 3 stars
design-pattern SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/design-pattern/SKILL.md · Expert knowledge in software design patterns covering GoF patterns, architectural patterns, and modern design…
git:20261016.6f8a292 · audit A · 3 stars
enterprise-java SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/enterprise-java/SKILL.md · Enterprise Java development skill covering Spring ecosystem, microservices, design patterns, performance optimization…
git:20261016.6f8a292 · audit A · 3 stars
frontend-react SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/frontend-react/SKILL.md · Professional React development skill covering Next.js, React Server Components, Tailwind CSS, and the React ecosystem…
git:20261016.6f8a292 · audit A · 3 stars
frontend-svelte SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/frontend-svelte/SKILL.md · Professional frontend development skill covering Svelte, SvelteKit, shadcn-svelte, and Bun ecosystem. Use this skill…
git:20261016.6f8a292 · audit B · 3 stars
frontend-vue SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/frontend-vue/SKILL.md · Professional Vue.js development skill covering Nuxt 3, Vue 3 Composition API, Tailwind CSS, and the Vue ecosystem. Use…
git:20261016.6f8a292 · audit B · 3 stars
git-guru SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/git-guru/SKILL.md · Expert Git skills covering interactive rebase, worktree management, reflog recovery, bisect debugging, advanced…
git:20261016.6f8a292 · audit A · 3 stars
go-development SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/go-development/SKILL.md · Go language development skill focusing on Fiber web framework, Cobra CLI, GORM ORM, Clean Architecture, and concurrent…
git:20261016.6f8a292 · audit A · 3 stars
javascript-typescript SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/javascript-typescript/SKILL.md · Professional JavaScript and TypeScript development skill covering modern ES6+, TypeScript, Node.js, Express, React…
git:20261016.6f8a292 · audit A · 3 stars
product-management SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/product-management/SKILL.md · Expertise in product management lifecycle, from ideation to launch. Covers requirements gathering, user story creation…
git:20261016.6f8a292 · audit A · 3 stars
python-development SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/python-development/SKILL.md · Professional Python development skill covering modern Python 3.10+, FastAPI, Django, Flask, async programming, data…
git:20261016.6f8a292 · audit A · 3 stars

Every file in projanvil/mindforge

Other files named testing

testing SKILL.md skill
garrytan/gbrain · skills/testing/SKILL.md · Skill validation framework PLUS daily test-suite health and regression intelligence. Validates skill conformance…
v1.1.0 · audit A · 31,074 stars
testing SKILL.md skill
davepoon/buildwithclaude · plugins/cc-best/skills/testing/SKILL.md · Testing strategies and methodologies including TDD, E2E testing, and multi-framework support
git:20260307.6b5172a · audit A · 3,660 stars
testing SKILL.md skill
live-codes/livecodes · .agents/skills/livecodes/testing/SKILL.md · Write and run automated tests with Jest and Testing Library in the browser. Import code from script editor, use watch…
git:20260914.daf8be4 · audit A · 1,521 stars
testing Cursor rule
thedaviddias/llms-txt-hub · .cursor/rules/testing.mdc · Rules for writing Jest tests in TypeScript
git:20250301.62fad3c · audit A · 914 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/codex/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async; Use
git:20260724.daea640 · audit A · 569 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · plugins/elixir-phoenix/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async reliability, Mox, ExMachina, and LiveViewTest. Use…
git:20260724.daea640 · audit A · 569 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/amp/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async reliability,
git:20260724.daea640 · audit A · 569 stars
testing Cursor rule
autonomous-ai/lampos · .cursor/rules/testing.mdc · Testing conventions
git:20260324.7a91f3b · audit A · 483 stars

Browse by kind, by grade A, or by owner.