testing-strategy
Designs testing strategies that balance coverage, execution speed, and maintenance costs, based on the test pyramid methodology.
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill testing-strategyBefore / After Comparison
1 组Ad-hoc and unplanned test writing, excessive end-to-end tests leading to slow execution, insufficient unit test coverage, high maintenance costs, and test suites gradually becoming a development bottleneck.
Reasonably allocate test proportions at each layer based on the test pyramid, balance coverage and execution speed, clearly define the responsibility boundaries for each test type, resulting in efficient and easily maintainable test suites.
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
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill