testing-strategy
Design comprehensive test strategies with test pyramid coverage and quality gates
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Design comprehensive test strategies with test pyramid coverage and quality gates
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Fast codebase searches using grep/glob. Triggers on "find", "search", "where is", "grep for".
Use when working with dbt (data build tool) - creating models, writing tests, CI/CD pipelines, materializations, sources, staging/intermediate/marts layers, Snowflake/BigQuery warehouse configuration, incremental strategies, Jinja macros, data quality, semantic layer, or making analytics engineering decisions
Local git operations for syncing, branching, merging, and conflict resolution
GitHub interactions for issues, PRs, releases, and repository management
Interactive wizard to craft effective prompts using Claude Code best practices
Test-driven development reference for writing good tests, designing testable interfaces, mocking at system boundaries, and refactoring after green. Use when writing tests, reviewing test quality, or applying red-green-refactor workflow. Not for running test suites or CI configuration — use language-conventions or cicd-generation for those.
| name | Testing Strategy |
| department | craftsman |
| description | Design comprehensive test strategies with test pyramid coverage and quality gates |
| version | 1 |
| triggers | ["test","testing","unit test","integration test","e2e","coverage","CI","quality gate","regression","TDD"] |
Design comprehensive test strategies with test pyramid coverage, test file structure, and quality gates.
From the feature, extract:
/ E2E \ ← Few: critical user paths only (expensive, slow)
/----------\
/ Integration \ ← Some: cross-boundary, API contracts, DB queries
/----------------\
/ Unit Tests \ ← Many: fast, isolated, 80%+ of test count
/--------------------\
For each layer, specify:
| Layer | Test File | Test Cases | Mocks Needed | Priority |
|---|---|---|---|---|
| Unit | ... | ... | ... | ... |
| Integration | ... | ... | ... | ... |
| E2E | ... | ... | ... | ... |
For each test case:
__tests__/, top-level tests/, or .test.ts suffix)describe('ModuleName', () => { it('should ...') }) format| Layer | Count | Run Time | Mock Strategy |
|---|---|---|---|
| Unit | ... | ... | ... |
| Integration | ... | ... | ... |
| E2E | ... | ... | ... |
For each test file:
File: src/__tests__/feature.test.ts
Layer: Unit
describe('FeatureName')
it('should handle the happy path')
- Input: ...
- Expected: ...
it('should handle invalid input')
- Input: ...
- Expected: throws/returns error
it('should handle edge case')
- Input: ...
- Expected: ...
Mocks: ExternalService (return mock data)
| Category | Target | Rationale |
|---|---|---|
| Business logic | 90%+ | Core value, must be correct |
| API handlers | 80%+ | Contract compliance |
| UI components | 70%+ | Render + key interactions |
| Utilities | 90%+ | Pure functions, easy to test |
| Glue/config | Skip | Not worth testing |