| name | create-feature-test-suite |
| description | Builds traceable unit, integration, and e2e test suites from feature requirements. Use when adding or expanding automated verification for Mindmap Dungeon features.
|
Skill: Create Feature Test Suite
Translate feature requirements into deterministic tests with clear traceability.
Process
Step 1: Build Requirement-to-Test Matrix
- List all feature functional requirements.
- Map each requirement to at least one test level:
- Unit for pure logic
- Integration for module interaction
- E2E for user-critical journeys
Step 2: Generate Unit and Integration Tests
describe("<REQ-ID>", () => {
it("enforces expected behavior", () => {
});
});
- Use deterministic fixtures.
- Cover both happy and failure paths.
- Prefer explicit assertions over snapshots for business rules.
Step 3: Add End-to-End Coverage for Primary Paths
- Cover create -> scribe -> progression -> review happy path.
- Cover one critical failure-recovery path per feature.
- Include keyboard/focus checks on primary screens.
Step 4: Validate and Report Coverage
- Run lint, unit, integration, and e2e checks relevant to changed features.
- Report which requirement IDs are covered and any remaining gaps.
Reference
See Product Vision and all feature test strategy sections:
- Product Vision Section 6.1 - Testing stack baseline
- Product Vision Section 9 - Accessibility expectations
- Feature Sections 6 in foundation, creator-dungeon, scribe-encounters, progression, and archaeologist-review