testing-strategy
设计平衡覆盖率、执行速度和维护成本的测试策略,基于测试金字塔方法论
npx skills add anthropics/knowledge-work-plugins --skill testing-strategyBefore / After 效果对比
1 组测试编写随意无规划,端到端测试过多导致执行缓慢,单元测试覆盖不足,维护成本高昂,测试套件逐渐成为开发瓶颈
基于测试金字塔合理分配各层测试比例,平衡覆盖率与执行速度,明确每类测试的职责边界,测试套件高效且易维护
description 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
forum用户评价 (0)
发表评价
暂无评价,来写第一条吧
统计数据
用户评分
为此 Skill 评分