首页/测试 & QA/testing-strategy
T

testing-strategy

by @anthropicsv
4.5(20)

设计平衡覆盖率、执行速度和维护成本的测试策略,基于测试金字塔方法论

test-strategytest-pyramidcoveragetest-planningGitHub
安装方式
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill testing-strategy
compare_arrows

Before / After 效果对比

1 组
使用前

测试编写随意无规划,端到端测试过多导致执行缓慢,单元测试覆盖不足,维护成本高昂,测试套件逐渐成为开发瓶颈

使用后

基于测试金字塔合理分配各层测试比例,平衡覆盖率与执行速度,明确每类测试的职责边界,测试套件高效且易维护

SKILL.md

testing-strategy

Testing Strategy

Design effective testing strategies balancing coverage, speed, and maintenance.

Testing Pyramid

        /  E2E  \         Few, slow, high confidence
       / Integration \     Some, medium speed
      /    Unit Tests  \   Many, fast, focused

Strategy by Component Type

  • API endpoints: Unit tests for business logic, integration tests for HTTP layer, contract tests for consumers

  • Data pipelines: Input validation, transformation correctness, idempotency tests

  • Frontend: Component tests, interaction tests, visual regression, accessibility

  • Infrastructure: Smoke tests, chaos engineering, load tests

What to Cover

Focus on: business-critical paths, error handling, edge cases, security boundaries, data integrity.

Skip: trivial getters/setters, framework code, one-off scripts.

Output

Produce a test plan with: what to test, test type for each area, coverage targets, and example test cases. Identify gaps in existing coverage. Weekly Installs205Repositoryanthropics/know…-pluginsGitHub Stars9.9KFirst SeenFeb 24, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex191opencode191gemini-cli190cursor189github-copilot189amp188

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量6.4K
评分4.5 / 5.0
版本
更新日期2026年10月22日
对比案例1 组

用户评分

4.5(20)
5
20%
4
50%
3
25%
2
5%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月19日
最后更新2026年10月22日
🎁 Agent 知识卡片
调研问卷