Agent Skills
› NeverSight/learn-skills.dev
› testing-strategy
testing-strategy
GitHub基于PRD验收标准制定测试策略,生成覆盖矩阵,选择合适测试类型,确保确定性、隔离性及边界覆盖,运行测试并输出报告,保障功能与修复的测试完备性。
Trigger Scenarios
为新增功能或修复编写测试计划
需要验证所有验收准则是否被测试覆盖
构建高信号、低噪音的CI友好型测试套件
Install
npx skills add NeverSight/learn-skills.dev --skill testing-strategy -g -y
SKILL.md
Frontmatter
{
"name": "testing-strategy",
"description": "Create a testing plan tied to PRD acceptance criteria with a coverage matrix (AC→tests), deterministic fixtures\/factories, and mocked externals. Use when adding tests for a feature\/fix and ensuring every acceptance criterion is covered."
}
Testing Strategy
Inputs
- PRD acceptance criteria (
docs/prds/) - Design doc (
docs/architecture/) - Test conventions/commands (
PROJECT.md)
1. Coverage Matrix
Create a table:
- Acceptance criterion → test type (unit/integration/e2e) → location → status
Expected: Every acceptance criterion has ≥1 test.
2. Choose Test Types
- Unit: pure logic
- Integration: API + DB + critical boundaries
- E2E: only critical happy paths + major regression risks
Expected: Minimal, reliable tests with maximum signal.
3. Determinism and Isolation
- Use factories/fixtures (no brittle hardcoded data).
- Mock external services (never call real APIs).
- Avoid time/network flakiness; control randomness.
Expected: Tests are deterministic, parallel-safe, CI-friendly.
4. Negative & Edge Coverage
- Validation errors
- Permissions/authz boundaries
- Empty states
- Partial failures (retries/idempotency if relevant)
Expected: Critical failure modes are covered.
5. Run Tests
Run the test commands from PROJECT.md.
Expected: All tests pass.
6. Summary Report
After running, provide:
Passed Checks
- Coverage matrix complete
- External services mocked
- Tests deterministic
- Tests pass
Gaps / Follow-ups
For each gap:
- Acceptance criterion: ...
- Missing test type: ...
- Suggested test location: ...
- Suggested fix: ...
Version History
- e0220ca Current 2026-07-05 23:19


