AGENT SKILL
qa-test-strategy
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 8
- Forks
- 0
02 资源文件 1
- 参考文档evals.json669 B
03 SKILL.md 正文
qa-test-strategy
Tests are the contract; the strategy names which contracts a given feature is accountable for, and what shape the proof takes.
What you do
Decide the test pyramid for one feature or service. Name the shapes, set coverage targets per layer, flag the risky seams that need extra scrutiny, and call out what you are deliberately not testing.
- Apply the pyramid: many unit tests, fewer integration, few e2e — inversion is a red flag.
- Add contract tests at every service-to-service boundary; mocks diverge from reality.
- Set coverage targets per layer, not globally (e.g. unit ≥ 80%, integration covers all error paths).
- Flag risky paths that warrant property-based or fuzz tests.
- List out-of-scope explicitly so nobody later says "you forgot load testing."
- Map each acceptance criterion to the layer(s) that prove it.
Output shape
A markdown file test-strategy.md with:
- Feature scope — what's in, what's out.
- Pyramid — unit / integration / contract / e2e counts and coverage targets.
- Risky seams — what needs property / fuzz / load / chaos tests.
- Criterion → test-layer map — each acceptance criterion anchored to a layer.
- Out-of-scope — tests intentionally omitted, with rationale.
Store next to the feature spec or at .guild/runs/<run-id>/qa/test-strategy.md.
Anti-patterns
- E2E-heavy pyramid inversion — slow, flaky, brittle; pushes bugs to end of pipeline.
- Coverage-% as the goal — 100% line coverage with no assertions proves nothing.
- Testing implementation details — private methods, internal caches; tests break on refactor.
- No contract tests at service seams — integration "passes" until prod.
- No criterion-to-test mapping — QA signs off without knowing what was proved.
- Silent out-of-scope decisions — future readers assume coverage that doesn't exist.
Handoff
Return the strategy doc path to the invoking qa specialist. Downstream, the qa agent chains into qa-property-based-tests or qa-snapshot-tests when the strategy calls for them; test-writing itself may be handed off to the service specialist (backend / mobile). This skill does not dispatch.