test-master by jeffallan/claude-skills
npx skills add https://github.com/jeffallan/claude-skills --skill test-master全面的测试专家,通过功能、性能和安全性测试确保软件质量。
一个最小的 Jest 单元测试,展示了此技能所强调的关键模式:
// ✅ Good: meaningful description, specific assertion, isolated dependency
describe('calculateDiscount', () => {
it('applies 10% discount for premium users', () => {
const result = calculateDiscount({ price: 100, userTier: 'premium' });
expect(result).toBe(90); // specific outcome, not just truthy
});
it('throws on negative price', () => {
expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))
.toThrow('Price must be non-negative');
});
});
对于 pytest(def test_…,)和其他框架,应用相同的结构。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
assert result == expected根据上下文加载详细指导:
| 主题 | 参考 | 加载时机 |
|---|---|---|
| 单元测试 | references/unit-testing.md | Jest, Vitest, pytest 模式 |
| 集成测试 | references/integration-testing.md | API 测试, Supertest |
| 端到端测试 | references/e2e-testing.md | E2E 策略, 用户流程 |
| 性能测试 | references/performance-testing.md | k6, 负载测试 |
| 安全测试 | references/security-testing.md | 安全测试清单 |
| 报告 | references/test-reports.md | 报告模板, 发现的问题 |
| QA 方法论 | references/qa-methodology.md | 手动测试, 质量倡导, 左移, 持续测试 |
| 自动化 | references/automation-frameworks.md | 框架模式, 扩展, 维护, 团队赋能 |
| TDD 铁律 | references/tdd-iron-laws.md | TDD 方法论, 测试驱动开发, 红-绿-重构 |
| 测试反模式 | references/testing-anti-patterns.md | 测试审查, Mock 问题, 测试质量问题 |
必须做到
it('…') 描述,使其读起来像英文规范expect(result).toBe(90)),而不仅仅是真值禁止事项
创建测试计划时,请提供:
每周安装量
1.1K
代码仓库
GitHub Stars
7.2K
首次出现
Jan 21, 2026
安全审计
安装于
opencode876
gemini-cli846
codex827
github-copilot794
claude-code781
cursor775
Comprehensive testing specialist ensuring software quality through functional, performance, and security testing.
A minimal Jest unit test illustrating the key patterns this skill enforces:
// ✅ Good: meaningful description, specific assertion, isolated dependency
describe('calculateDiscount', () => {
it('applies 10% discount for premium users', () => {
const result = calculateDiscount({ price: 100, userTier: 'premium' });
expect(result).toBe(90); // specific outcome, not just truthy
});
it('throws on negative price', () => {
expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))
.toThrow('Price must be non-negative');
});
});
Apply the same structure for pytest (def test_…, assert result == expected) and other frameworks.
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Unit Testing | references/unit-testing.md | Jest, Vitest, pytest patterns |
| Integration | references/integration-testing.md | API testing, Supertest |
| E2E | references/e2e-testing.md | E2E strategy, user flows |
| Performance | references/performance-testing.md | k6, load testing |
| Security | references/security-testing.md |
MUST DO
it('…') descriptions that read as plain-English specificationsexpect(result).toBe(90)), not just truthinessMUST NOT
When creating test plans, provide:
Weekly Installs
1.1K
Repository
GitHub Stars
7.2K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode876
gemini-cli846
codex827
github-copilot794
claude-code781
cursor775
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
| Security test checklist |
| Reports | references/test-reports.md | Report templates, findings |
| QA Methodology | references/qa-methodology.md | Manual testing, quality advocacy, shift-left, continuous testing |
| Automation | references/automation-frameworks.md | Framework patterns, scaling, maintenance, team enablement |
| TDD Iron Laws | references/tdd-iron-laws.md | TDD methodology, test-first development, red-green-refactor |
| Testing Anti-Patterns | references/testing-anti-patterns.md | Test review, mock issues, test quality problems |