跳到正文
Skillpedia
测试48k · #4064

brooks-test

它能做什么

这个工具用于分析你的软件测试质量。它会检查测试是否脆弱、是否误用“mock”(模拟对象)、测试的准备工作是否混乱、断言是否薄弱、运行是否耗时过长,以及是否可能在将来带来维护问题。

适用场景

  • ✓当你想提升现有测试的质量时。
  • ✓在进行重大代码改动之前,了解测试方面的风险。
  • ✓用来找出运行时间过长的测试。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-test/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-test/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请分析我的软件测试质量,并告诉我哪些地方可以改进。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会先阅读经典的软件测试书籍,以了解常见问题。然后它会检查你的测试、寻找问题迹象,并生成一份附带建议的报告。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Brooks-Lint — Test Quality Review

When to Use

Use this skill when you need test quality review drawing on twelve classic engineering books — with primary focus on xUnit Test Patterns, The Art of Unit Testing, How Google Tests Software, and Working Effectively with Legacy Code — that diagnoses structural problems in an existing test suite: brittleness, mock...

Setup

  1. Read ../_shared/common.md for the Iron Law, Project Config, Report Template, and Health Score rules
  2. Read ../_shared/source-coverage.md for book-level coverage, exceptions, and tradeoffs
  3. Read ../_shared/test-decay-risks.md for test-space symptom definitions and source attributions
  4. Read test-guide.md in this directory for the test quality review framework

Process

If the user has not shared test files or pointed to a test directory: apply Auto Scope Detection from ../_shared/common.md to determine the review scope before proceeding.

  1. Build the test suite map (guide's "Before You Start" section)
  2. Scan for each test decay risk in the order specified (Steps 1–4 of the guide)
  3. Apply the Iron Law and output using the Report Template (Step 5 of the guide)

Mode line in report: Test Quality Review

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
常见问题

什么是“mock”?

“mock”是用来模拟软件其他部分的替身,用于单独测试某一个模块。过度使用或使用不当,会让测试变得脆弱。

“脆弱的测试”是什么意思?

脆弱的测试是指即使主代码运行正常,也很容易失败的测试,通常是因为它依赖了太多的实现细节。

什么是“书籍覆盖范围”?

指分析你的测试时,参考了哪些特定软件工程书籍中的概念。

详情

作者的原始描述

Review test-suite quality using established testing literature; identify brittleness, mock abuse, unclear fixtures, weak assertions, slow feedback, and maintenance risks.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4064
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能