claude-symphony 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -12
- package/bin/create.js +80 -69
- package/package.json +1 -1
- package/template/.claude/commands/benchmark.md +32 -32
- package/template/.claude/commands/brainstorm.md +33 -33
- package/template/.claude/commands/checkpoint.md +42 -42
- package/template/.claude/commands/codex.md +52 -52
- package/template/.claude/commands/collaborate.md +47 -47
- package/template/.claude/commands/context.md +77 -77
- package/template/.claude/commands/deploy.md +50 -50
- package/template/.claude/commands/fork.md +46 -46
- package/template/.claude/commands/gemini.md +43 -43
- package/template/.claude/commands/handoff.md +42 -42
- package/template/.claude/commands/implement.md +42 -42
- package/template/.claude/commands/init-project.md +25 -25
- package/template/.claude/commands/next.md +67 -67
- package/template/.claude/commands/planning.md +38 -38
- package/template/.claude/commands/qa.md +47 -47
- package/template/.claude/commands/refactor.md +50 -50
- package/template/.claude/commands/research.md +31 -31
- package/template/.claude/commands/restore.md +53 -53
- package/template/.claude/commands/run-stage.md +45 -45
- package/template/.claude/commands/stages.md +49 -49
- package/template/.claude/commands/status.md +41 -41
- package/template/.claude/commands/tasks.md +33 -33
- package/template/.claude/commands/test.md +45 -45
- package/template/.claude/commands/ui-ux.md +31 -31
- package/template/.claude/commands/validate.md +81 -81
- package/template/.claude/hooks/ai-selector.sh +39 -39
- package/template/.claude/hooks/auto-checkpoint.sh +30 -30
- package/template/.claude/hooks/output-validator.sh +45 -45
- package/template/.claude/hooks/post-stage.sh +28 -28
- package/template/.claude/hooks/pre-stage.sh +47 -47
- package/template/.claude/hooks/session-start.sh +27 -27
- package/template/.claude/hooks/statusline.sh +24 -24
- package/template/.claude/hooks/stop.sh +26 -26
- package/template/.claude/settings.json +32 -32
- package/template/.claude/skills/ai-collaboration/README.md +31 -31
- package/template/.claude/skills/ai-collaboration/debate.md +66 -66
- package/template/.claude/skills/ai-collaboration/parallel.md +34 -34
- package/template/.claude/skills/ai-collaboration/prompts/CLAUDE.md +59 -63
- package/template/.claude/skills/auto-checkpoint/README.md +46 -46
- package/template/.claude/skills/auto-checkpoint/prompts/CLAUDE.md +68 -72
- package/template/.claude/skills/auto-checkpoint/rollback.md +95 -95
- package/template/.claude/skills/auto-checkpoint/trigger.md +37 -37
- package/template/.claude/skills/context-compression/README.md +69 -69
- package/template/.claude/skills/context-compression/analyze.md +74 -74
- package/template/.claude/skills/context-compression/compress.md +103 -103
- package/template/.claude/skills/context-compression/prompts/compression.md +78 -78
- package/template/.claude/skills/output-validator/README.md +33 -33
- package/template/.claude/skills/output-validator/prompts/CLAUDE.md +74 -78
- package/template/.claude/skills/output-validator/validate.md +76 -76
- package/template/.claude/skills/smart-handoff/README.md +35 -35
- package/template/.claude/skills/smart-handoff/extract.md +42 -42
- package/template/.claude/skills/smart-handoff/prompts/CLAUDE.md +52 -54
- package/template/.claude/skills/smart-handoff/summarize.md +55 -55
- package/template/.claude/skills/stage-transition/README.md +50 -50
- package/template/.claude/skills/stage-transition/handoff-gen.md +89 -89
- package/template/.claude/skills/stage-transition/prompts/transition.md +74 -74
- package/template/.claude/skills/stage-transition/validate.md +41 -41
- package/template/CLAUDE.md +334 -335
- package/template/config/ai_benchmarking.yaml +22 -22
- package/template/config/ai_collaboration.yaml +18 -18
- package/template/config/ai_logging.yaml +50 -50
- package/template/config/auto_checkpoint.yaml +32 -32
- package/template/config/context.yaml +20 -20
- package/template/config/git.yaml +51 -51
- package/template/config/handoff_intelligence.yaml +23 -23
- package/template/config/mcp_fallbacks.yaml +71 -71
- package/template/config/memory_integration.yaml +23 -23
- package/template/config/model_enforcement.yaml +53 -53
- package/template/config/models.yaml +24 -24
- package/template/config/output_validation.yaml +44 -44
- package/template/config/pipeline.yaml +25 -25
- package/template/config/pipeline_forking.yaml +40 -40
- package/template/config/qa_logging.yaml +67 -67
- package/template/config/smart_rollback.yaml +48 -48
- package/template/config/stage_personas.yaml +154 -154
- package/template/config/workflow.yaml +16 -16
- package/template/scripts/ai-benchmark.sh +41 -41
- package/template/scripts/codex-wrapper.sh +32 -32
- package/template/scripts/context-manager.sh +136 -136
- package/template/scripts/create-checkpoint.sh +34 -34
- package/template/scripts/gemini-wrapper.sh +31 -31
- package/template/scripts/init-project.sh +40 -40
- package/template/scripts/list-stages.sh +30 -30
- package/template/scripts/next-stage.sh +67 -67
- package/template/scripts/output-validate.sh +2 -2
- package/template/scripts/pipeline-fork.sh +68 -68
- package/template/scripts/pre-run-check.sh +84 -84
- package/template/scripts/restore-checkpoint.sh +50 -50
- package/template/scripts/run-stage.sh +44 -44
- package/template/scripts/show-status.sh +30 -30
- package/template/scripts/smart-handoff.sh +70 -70
- package/template/stages/01-brainstorm/CLAUDE.md +70 -74
- package/template/stages/01-brainstorm/README.md +54 -54
- package/template/stages/01-brainstorm/config.yaml +18 -18
- package/template/stages/01-brainstorm/prompts/collaboration.md +24 -24
- package/template/stages/01-brainstorm/prompts/ideation.md +41 -41
- package/template/stages/01-brainstorm/prompts/persona.md +50 -50
- package/template/stages/01-brainstorm/prompts/requirements.md +55 -55
- package/template/stages/01-brainstorm/prompts/validation.md +28 -28
- package/template/stages/01-brainstorm/templates/ideas.md +47 -47
- package/template/stages/01-brainstorm/templates/requirements_analysis.md +61 -61
- package/template/stages/02-research/CLAUDE.md +72 -76
- package/template/stages/02-research/config.yaml +12 -12
- package/template/stages/02-research/prompts/collaboration.md +29 -29
- package/template/stages/02-research/prompts/feasibility.md +38 -38
- package/template/stages/02-research/prompts/market_analysis.md +29 -29
- package/template/stages/02-research/prompts/tech_stack.md +34 -34
- package/template/stages/02-research/prompts/validation.md +29 -29
- package/template/stages/03-planning/CLAUDE.md +88 -92
- package/template/stages/03-planning/config.yaml +10 -10
- package/template/stages/03-planning/prompts/architecture.md +43 -43
- package/template/stages/03-planning/prompts/collaboration.md +34 -34
- package/template/stages/03-planning/prompts/validation.md +34 -34
- package/template/stages/04-ui-ux/CLAUDE.md +68 -72
- package/template/stages/04-ui-ux/config.yaml +5 -5
- package/template/stages/04-ui-ux/prompts/collaboration.md +35 -35
- package/template/stages/04-ui-ux/prompts/validation.md +30 -30
- package/template/stages/05-task-management/CLAUDE.md +81 -85
- package/template/stages/05-task-management/config.yaml +17 -17
- package/template/stages/05-task-management/prompts/collaboration.md +30 -30
- package/template/stages/05-task-management/prompts/validation.md +33 -33
- package/template/stages/05-task-management/templates/notion_integration.md +70 -70
- package/template/stages/05-task-management/templates/parallel_groups.yaml +64 -64
- package/template/stages/05-task-management/templates/task_schema.yaml +33 -33
- package/template/stages/06-implementation/CLAUDE.md +117 -121
- package/template/stages/06-implementation/config.yaml +10 -10
- package/template/stages/06-implementation/prompts/collaboration.md +29 -29
- package/template/stages/06-implementation/prompts/validation.md +36 -36
- package/template/stages/07-refactoring/CLAUDE.md +120 -124
- package/template/stages/07-refactoring/config.yaml +11 -11
- package/template/stages/07-refactoring/prompts/collaboration.md +36 -36
- package/template/stages/07-refactoring/prompts/validation.md +40 -40
- package/template/stages/08-qa/CLAUDE.md +80 -84
- package/template/stages/08-qa/config.yaml +7 -7
- package/template/stages/08-qa/prompts/collaboration.md +34 -34
- package/template/stages/08-qa/prompts/validation.md +41 -41
- package/template/stages/09-testing/CLAUDE.md +86 -90
- package/template/stages/09-testing/config.yaml +10 -10
- package/template/stages/09-testing/prompts/collaboration.md +38 -38
- package/template/stages/09-testing/prompts/validation.md +41 -41
- package/template/stages/10-deployment/CLAUDE.md +86 -90
- package/template/stages/10-deployment/config.yaml +11 -11
- package/template/stages/10-deployment/prompts/collaboration.md +37 -37
- package/template/stages/10-deployment/prompts/validation.md +54 -54
- package/template/stages/10-deployment/templates/github-actions-cd.yaml +1 -1
|
@@ -1,124 +1,120 @@
|
|
|
1
1
|
# Stage 09: Testing & E2E
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
>
|
|
9
|
-
>
|
|
10
|
-
|
|
11
|
-
###
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
###
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
###
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
### AI
|
|
29
|
-
- **Temperature**: 0.4 (
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
##
|
|
34
|
-
- **Primary**: Codex (
|
|
3
|
+
Test code writing and E2E testing stage
|
|
4
|
+
|
|
5
|
+
## Persona: Test Engineer
|
|
6
|
+
|
|
7
|
+
> You are a Test Engineer.
|
|
8
|
+
> Write reliable and maintainable tests.
|
|
9
|
+
> Aim for high coverage and clear test cases.
|
|
10
|
+
|
|
11
|
+
### Characteristics
|
|
12
|
+
- Systematic testing
|
|
13
|
+
- Coverage optimization
|
|
14
|
+
- Automation-oriented
|
|
15
|
+
- Reproducibility
|
|
16
|
+
|
|
17
|
+
### Recommended Actions
|
|
18
|
+
- High test coverage
|
|
19
|
+
- Various scenarios
|
|
20
|
+
- Automated tests
|
|
21
|
+
- Clear assertions
|
|
22
|
+
|
|
23
|
+
### Actions to Avoid
|
|
24
|
+
- Flaky tests
|
|
25
|
+
- Hardcoded values
|
|
26
|
+
- Tests with many dependencies
|
|
27
|
+
|
|
28
|
+
### AI Settings
|
|
29
|
+
- **Temperature**: 0.4 (systematic design)
|
|
30
|
+
- **Coverage Focus**: High
|
|
31
|
+
- **Automation Level**: High
|
|
32
|
+
|
|
33
|
+
## Execution Model
|
|
34
|
+
- **Primary**: Codex (test code generation)
|
|
35
35
|
- **Mode**: Sandbox + Playwright
|
|
36
|
-
- **MCP**: playwright
|
|
36
|
+
- **MCP**: playwright server integration
|
|
37
37
|
|
|
38
|
-
##
|
|
39
|
-
1.
|
|
40
|
-
2.
|
|
41
|
-
3. E2E
|
|
42
|
-
4.
|
|
38
|
+
## Goals
|
|
39
|
+
1. Unit test writing
|
|
40
|
+
2. Integration test writing
|
|
41
|
+
3. E2E test writing (Playwright)
|
|
42
|
+
4. Test coverage achievement
|
|
43
43
|
|
|
44
|
-
##
|
|
45
|
-
- `../07-refactoring/outputs/refactored_code/` (
|
|
44
|
+
## Input Files
|
|
45
|
+
- `../07-refactoring/outputs/refactored_code/` (or modified code)
|
|
46
46
|
- `../08-qa/outputs/qa_report.md`
|
|
47
47
|
- `../08-qa/HANDOFF.md`
|
|
48
48
|
|
|
49
|
-
##
|
|
50
|
-
- `outputs/tests/` -
|
|
51
|
-
- `outputs/test_report.md` -
|
|
52
|
-
- `outputs/coverage_report.md` -
|
|
53
|
-
- `HANDOFF.md` -
|
|
49
|
+
## Output Files
|
|
50
|
+
- `outputs/tests/` - Test code
|
|
51
|
+
- `outputs/test_report.md` - Test results report
|
|
52
|
+
- `outputs/coverage_report.md` - Coverage report
|
|
53
|
+
- `HANDOFF.md` - Handoff document for next stage
|
|
54
54
|
|
|
55
|
-
## Codex CLI
|
|
55
|
+
## Codex CLI Usage
|
|
56
56
|
|
|
57
|
-
###
|
|
57
|
+
### Unit Test Generation
|
|
58
58
|
```bash
|
|
59
|
-
/codex "
|
|
60
|
-
[
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
/codex "Write unit tests for the following function:
|
|
60
|
+
[function code]
|
|
61
|
+
Test framework: Vitest/Jest
|
|
62
|
+
Coverage target: 80%"
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
### E2E
|
|
65
|
+
### E2E Test Generation
|
|
66
66
|
```bash
|
|
67
|
-
/codex "
|
|
68
|
-
1.
|
|
69
|
-
2.
|
|
70
|
-
3.
|
|
67
|
+
/codex "Write Playwright tests for the following user flows:
|
|
68
|
+
1. Login flow
|
|
69
|
+
2. Core feature test
|
|
70
|
+
3. Error scenarios"
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
##
|
|
73
|
+
## Workflow
|
|
74
74
|
|
|
75
|
-
### 1.
|
|
75
|
+
### 1. Test Environment Setup
|
|
76
76
|
```bash
|
|
77
|
-
# Vitest
|
|
77
|
+
# Vitest setup
|
|
78
78
|
npm install -D vitest @testing-library/react
|
|
79
79
|
|
|
80
|
-
# Playwright
|
|
80
|
+
# Playwright setup
|
|
81
81
|
npm install -D @playwright/test
|
|
82
82
|
npx playwright install
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
### 2.
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
- API
|
|
85
|
+
### 2. Unit Test Writing
|
|
86
|
+
- Utility functions
|
|
87
|
+
- Component rendering
|
|
88
|
+
- Hook tests
|
|
89
|
+
- API handlers
|
|
90
90
|
|
|
91
|
-
### 3.
|
|
92
|
-
- API
|
|
93
|
-
-
|
|
94
|
-
-
|
|
91
|
+
### 3. Integration Tests
|
|
92
|
+
- API integration tests
|
|
93
|
+
- Component integration tests
|
|
94
|
+
- Data flow tests
|
|
95
95
|
|
|
96
|
-
### 4. E2E
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
96
|
+
### 4. E2E Tests
|
|
97
|
+
- Core user flows
|
|
98
|
+
- Authentication flows
|
|
99
|
+
- Error handling scenarios
|
|
100
100
|
|
|
101
|
-
### 5.
|
|
102
|
-
-
|
|
103
|
-
-
|
|
101
|
+
### 5. Coverage Analysis
|
|
102
|
+
- Verify target coverage
|
|
103
|
+
- Identify uncovered areas
|
|
104
104
|
|
|
105
|
-
##
|
|
105
|
+
## Coverage Targets
|
|
106
106
|
- **Statements**: 80%
|
|
107
107
|
- **Branches**: 75%
|
|
108
108
|
- **Functions**: 80%
|
|
109
109
|
- **Lines**: 80%
|
|
110
110
|
|
|
111
|
-
##
|
|
112
|
-
- [ ]
|
|
113
|
-
- [ ]
|
|
114
|
-
- [ ] E2E
|
|
115
|
-
- [ ]
|
|
116
|
-
- [ ]
|
|
117
|
-
- [ ] HANDOFF.md
|
|
118
|
-
|
|
119
|
-
## 다음 스테이지
|
|
120
|
-
→ **10-deployment**: CI/CD 및 배포
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
111
|
+
## Completion Criteria
|
|
112
|
+
- [ ] Unit tests written (coverage 80%+)
|
|
113
|
+
- [ ] Integration tests written
|
|
114
|
+
- [ ] E2E tests written (core flows)
|
|
115
|
+
- [ ] All tests passing
|
|
116
|
+
- [ ] Coverage report generated
|
|
117
|
+
- [ ] HANDOFF.md generated
|
|
124
118
|
|
|
119
|
+
## Next Stage
|
|
120
|
+
→ **10-deployment**: CI/CD and deployment
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
stage:
|
|
4
4
|
id: "09-testing"
|
|
5
5
|
name: "Testing & E2E"
|
|
6
|
-
description: "
|
|
6
|
+
description: "Test code writing and E2E testing"
|
|
7
7
|
|
|
8
8
|
models:
|
|
9
9
|
primary: "codex"
|
|
@@ -22,18 +22,18 @@ mcp_servers:
|
|
|
22
22
|
inputs:
|
|
23
23
|
required:
|
|
24
24
|
- name: "source_code/"
|
|
25
|
-
description: "
|
|
25
|
+
description: "Source code to test"
|
|
26
26
|
- name: "../08-qa/outputs/qa_report.md"
|
|
27
27
|
- name: "../08-qa/HANDOFF.md"
|
|
28
28
|
|
|
29
29
|
outputs:
|
|
30
30
|
required:
|
|
31
31
|
- name: "tests/"
|
|
32
|
-
description: "
|
|
32
|
+
description: "Test code"
|
|
33
33
|
- name: "test_report.md"
|
|
34
|
-
description: "
|
|
34
|
+
description: "Test results report"
|
|
35
35
|
- name: "coverage_report.md"
|
|
36
|
-
description: "
|
|
36
|
+
description: "Coverage report"
|
|
37
37
|
- name: "HANDOFF.md"
|
|
38
38
|
|
|
39
39
|
prompts:
|
|
@@ -49,11 +49,11 @@ prompts:
|
|
|
49
49
|
|
|
50
50
|
completion:
|
|
51
51
|
checklist:
|
|
52
|
-
- "
|
|
53
|
-
- "
|
|
54
|
-
- "E2E
|
|
55
|
-
- "
|
|
56
|
-
- "
|
|
52
|
+
- "Unit tests written (coverage 80%+)"
|
|
53
|
+
- "Integration tests written"
|
|
54
|
+
- "E2E tests written"
|
|
55
|
+
- "All tests passing"
|
|
56
|
+
- "Coverage report generated"
|
|
57
57
|
validation:
|
|
58
58
|
min_coverage: 80
|
|
59
59
|
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# AI
|
|
1
|
+
# AI Collaboration Prompt - Testing & E2E
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Collaboration Mode: Test Generation Chain
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This stage uses **test generation chain** to write comprehensive tests.
|
|
6
6
|
|
|
7
|
-
###
|
|
8
|
-
- **Codex**:
|
|
9
|
-
- **ClaudeCode**: E2E
|
|
7
|
+
### Participating Models
|
|
8
|
+
- **Codex**: Test code generation
|
|
9
|
+
- **ClaudeCode**: E2E tests, Playwright integration
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Collaboration Prompt
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
#
|
|
14
|
+
# Test generation chain
|
|
15
15
|
/collaborate --mode sequential --chain "codex:unit_tests -> codex:integration_tests -> claude:e2e_tests"
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
###
|
|
18
|
+
### Test Layers
|
|
19
19
|
|
|
20
|
-
|
|
|
21
|
-
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
| E2E
|
|
20
|
+
| Layer | Responsible AI | Tools |
|
|
21
|
+
|-------|---------------|-------|
|
|
22
|
+
| Unit Tests | Codex | Vitest/Jest |
|
|
23
|
+
| Integration Tests | Codex | Testing Library |
|
|
24
|
+
| E2E Tests | Claude | Playwright |
|
|
25
25
|
|
|
26
|
-
### Codex
|
|
26
|
+
### Codex Usage
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
#
|
|
30
|
-
/codex "
|
|
31
|
-
[
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
# E2E
|
|
36
|
-
/codex "
|
|
37
|
-
1.
|
|
38
|
-
2.
|
|
39
|
-
3.
|
|
29
|
+
# Unit test generation
|
|
30
|
+
/codex "Write unit tests for the following function:
|
|
31
|
+
[function code]
|
|
32
|
+
Test framework: Vitest
|
|
33
|
+
Coverage target: 80%"
|
|
34
|
+
|
|
35
|
+
# E2E test generation
|
|
36
|
+
/codex "Write Playwright tests for the following user flows:
|
|
37
|
+
1. Login
|
|
38
|
+
2. Core features
|
|
39
|
+
3. Error scenarios"
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
### MCP
|
|
42
|
+
### MCP Server: Playwright
|
|
43
43
|
|
|
44
44
|
```javascript
|
|
45
|
-
// E2E
|
|
46
|
-
test('
|
|
45
|
+
// E2E test example
|
|
46
|
+
test('Login flow', async ({ page }) => {
|
|
47
47
|
await page.goto('/login');
|
|
48
48
|
await page.fill('[name="email"]', 'test@example.com');
|
|
49
49
|
await page.fill('[name="password"]', 'password');
|
|
@@ -52,24 +52,24 @@ test('로그인 플로우', async ({ page }) => {
|
|
|
52
52
|
});
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
###
|
|
55
|
+
### Output Format
|
|
56
56
|
|
|
57
57
|
```markdown
|
|
58
|
-
## AI
|
|
58
|
+
## AI Collaboration Results
|
|
59
59
|
|
|
60
|
-
### Codex
|
|
61
|
-
- [
|
|
60
|
+
### Codex Unit Tests
|
|
61
|
+
- [File]: [Test case count]
|
|
62
62
|
...
|
|
63
63
|
|
|
64
|
-
### Codex
|
|
65
|
-
- [
|
|
64
|
+
### Codex Integration Tests
|
|
65
|
+
- [Scenario]: [Coverage]
|
|
66
66
|
...
|
|
67
67
|
|
|
68
|
-
### Claude E2E
|
|
69
|
-
- [
|
|
68
|
+
### Claude E2E Tests
|
|
69
|
+
- [Flow]: [Test cases]
|
|
70
70
|
...
|
|
71
71
|
|
|
72
|
-
###
|
|
72
|
+
### Coverage Summary
|
|
73
73
|
- Statements: X%
|
|
74
74
|
- Branches: X%
|
|
75
75
|
- Functions: X%
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Output Validation Prompt - Testing & E2E
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Validation Targets
|
|
4
4
|
|
|
5
|
-
|
|
|
6
|
-
|
|
7
|
-
| `tests/` |
|
|
8
|
-
| `test_report.md` | 100%
|
|
9
|
-
| `coverage_report.md` |
|
|
10
|
-
| `HANDOFF.md` |
|
|
5
|
+
| Output | Required Condition | Validation Method |
|
|
6
|
+
|--------|-------------------|-------------------|
|
|
7
|
+
| `tests/` | Coverage 80%+ | `npm run test:coverage` |
|
|
8
|
+
| `test_report.md` | 100% pass | Results verification |
|
|
9
|
+
| `coverage_report.md` | Metrics included | Structure verification |
|
|
10
|
+
| `HANDOFF.md` | Deployment ready state | Item verification |
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Validation Command
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
/validate --stage 09-testing
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Quality Criteria
|
|
19
19
|
|
|
20
20
|
### tests/
|
|
21
|
-
- [ ]
|
|
22
|
-
- [ ]
|
|
23
|
-
- [ ] E2E
|
|
24
|
-
- [ ]
|
|
21
|
+
- [ ] Unit tests exist
|
|
22
|
+
- [ ] Integration tests exist
|
|
23
|
+
- [ ] E2E tests exist (core flows)
|
|
24
|
+
- [ ] All tests passing
|
|
25
25
|
|
|
26
|
-
###
|
|
26
|
+
### Coverage Targets
|
|
27
27
|
- [ ] Statements: 80%+
|
|
28
28
|
- [ ] Branches: 75%+
|
|
29
29
|
- [ ] Functions: 80%+
|
|
30
30
|
- [ ] Lines: 80%+
|
|
31
31
|
|
|
32
32
|
### test_report.md
|
|
33
|
-
- [ ]
|
|
34
|
-
- [ ]
|
|
35
|
-
- [ ]
|
|
33
|
+
- [ ] Test case list
|
|
34
|
+
- [ ] Pass/fail status
|
|
35
|
+
- [ ] Failed test analysis (if any)
|
|
36
36
|
|
|
37
37
|
### coverage_report.md
|
|
38
|
-
- [ ]
|
|
39
|
-
- [ ]
|
|
40
|
-
- [ ]
|
|
38
|
+
- [ ] Coverage summary
|
|
39
|
+
- [ ] Per-file coverage
|
|
40
|
+
- [ ] Uncovered areas identified
|
|
41
41
|
|
|
42
42
|
### HANDOFF.md
|
|
43
|
-
- [ ]
|
|
44
|
-
- [ ]
|
|
45
|
-
- [ ]
|
|
43
|
+
- [ ] Tests passing confirmation
|
|
44
|
+
- [ ] Coverage achievement confirmation
|
|
45
|
+
- [ ] Deployment ready checklist
|
|
46
46
|
|
|
47
|
-
##
|
|
47
|
+
## Auto Validation Script
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
#
|
|
50
|
+
# Run unit/integration tests
|
|
51
51
|
npm run test
|
|
52
52
|
|
|
53
|
-
#
|
|
53
|
+
# Measure coverage
|
|
54
54
|
npm run test:coverage
|
|
55
55
|
|
|
56
|
-
# E2E
|
|
56
|
+
# Run E2E tests
|
|
57
57
|
npm run test:e2e
|
|
58
58
|
|
|
59
|
-
#
|
|
59
|
+
# Verify coverage threshold
|
|
60
60
|
npm run test:coverage -- --coverageThreshold='{"global":{"statements":80,"branches":75,"functions":80,"lines":80}}'
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
##
|
|
63
|
+
## Coverage Metrics
|
|
64
64
|
|
|
65
|
-
|
|
|
66
|
-
|
|
65
|
+
| Metric | Target | Actual | Status |
|
|
66
|
+
|--------|--------|--------|--------|
|
|
67
67
|
| Statements | 80% | - | - |
|
|
68
68
|
| Branches | 75% | - | - |
|
|
69
69
|
| Functions | 80% | - | - |
|
|
70
70
|
| Lines | 80% | - | - |
|
|
71
71
|
|
|
72
|
-
## E2E
|
|
72
|
+
## E2E Test Checklist
|
|
73
73
|
|
|
74
|
-
- [ ]
|
|
75
|
-
- [ ]
|
|
76
|
-
- [ ]
|
|
77
|
-
- [ ]
|
|
74
|
+
- [ ] Authentication flow test
|
|
75
|
+
- [ ] Core feature flow test
|
|
76
|
+
- [ ] Error scenario test
|
|
77
|
+
- [ ] Responsive test (optional)
|
|
78
78
|
|
|
79
|
-
##
|
|
79
|
+
## Actions on Failure
|
|
80
80
|
|
|
81
|
-
1.
|
|
82
|
-
2.
|
|
83
|
-
3. E2E
|
|
81
|
+
1. Test failure → Fix bug and re-run
|
|
82
|
+
2. Coverage not met → Add more tests
|
|
83
|
+
3. E2E failure → Fix UI/logic
|