chore: initial monorepo scaffold + WDS Phase 1+2 artifacts
- Nx 22.7 monorepo (pnpm 11.1, TypeScript 5.9, Node 24) - apps/api: NestJS 11 (CJS conforme CODING-RULES.md PGD-DB-004) - apps/web: React 19 + Vite 8 (ESM) - libs/shared/api-interface: Zod contract base - Docker Compose dev: Postgres 18, Valkey 8, MinIO, Mailpit - WDS artifacts: - design-artifacts/A-Product-Brief/ (5 docs canônicos + 16 dialogs) - design-artifacts/B-Trigger-Map/ (hub + 4 personas + feature impact) - Stack canon: STACK.md v2.2 + CODING-RULES.md v2.0 + brand.md - AGENTS.md + README.md como entrada para devs/agentes Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
88
.claude/skills/wds-8-product-evolution/workflow-test.md
Normal file
88
.claude/skills/wds-8-product-evolution/workflow-test.md
Normal file
@@ -0,0 +1,88 @@
|
||||
---
|
||||
name: acceptance-test
|
||||
description: Test the implementation against the specification
|
||||
borrows_from: Phase 5 [T] (acceptance testing)
|
||||
---
|
||||
|
||||
# Acceptance Test
|
||||
|
||||
**Goal:** Validate the implementation against the specification's acceptance criteria before deploying.
|
||||
|
||||
---
|
||||
|
||||
## INITIALIZATION
|
||||
|
||||
### Design Log
|
||||
Read `{output_folder}/_progress/00-design-log.md`. Check Current and Backlog for context.
|
||||
|
||||
|
||||
## Steps
|
||||
|
||||
### Step 1: Load Test Context
|
||||
|
||||
Gather everything needed for testing:
|
||||
|
||||
1. Read specification from [D] Design Solution
|
||||
2. Read scenario from [S] Scope Improvement
|
||||
3. Review implementation diff from [I] Implement
|
||||
4. Extract acceptance criteria into a test checklist
|
||||
|
||||
### Step 2: Prepare Test Environment
|
||||
|
||||
Ensure the implementation is running and testable:
|
||||
|
||||
1. Confirm branch is checked out: `evolution/[scenario-name]`
|
||||
2. Start local development server if needed
|
||||
3. Navigate to the affected page/view
|
||||
4. Note the URL and any required test data
|
||||
|
||||
### Step 3: Execute Tests
|
||||
|
||||
For each acceptance criterion:
|
||||
|
||||
| # | Criterion | Steps | Expected | Actual | Pass? |
|
||||
|---|-----------|-------|----------|--------|-------|
|
||||
| 1 | [From spec] | [How to test] | [Expected result] | [What happened] | Y/N |
|
||||
| 2 | ... | ... | ... | ... | ... |
|
||||
|
||||
Also test:
|
||||
- **Responsive**: Check all breakpoints defined in spec
|
||||
- **Edge cases**: Empty states, long content, error states
|
||||
- **Regression**: Verify nothing else broke on the page
|
||||
- **Cross-browser**: If specified in project requirements
|
||||
|
||||
### Step 4: Document Results
|
||||
|
||||
Create test report at `{output_folder}/evolution/test-reports/`:
|
||||
|
||||
```markdown
|
||||
# Test Report: [Scenario Name]
|
||||
|
||||
## Summary
|
||||
[X/Y criteria passed]
|
||||
|
||||
## Results
|
||||
[Test table from Step 3]
|
||||
|
||||
## Issues Found
|
||||
[List any failures with severity and description]
|
||||
|
||||
## Recommendation
|
||||
[Pass / Pass with notes / Fail — needs rework]
|
||||
```
|
||||
|
||||
### Step 5: Handle Failures
|
||||
|
||||
If tests fail:
|
||||
|
||||
- **Minor issues** → Fix in the same branch, retest
|
||||
- **Design issues** → Route back to [D] Design Solution
|
||||
- **Scope creep** → Log as separate improvement target for next cycle
|
||||
|
||||
---
|
||||
|
||||
## AFTER COMPLETION
|
||||
|
||||
1. Update design log
|
||||
2. Suggest next action
|
||||
3. Return to activity menu
|
||||
Reference in New Issue
Block a user