원클릭으로
speckit-spectest-plan
Generate a structured test plan document from spec scenarios and success criteria
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate a structured test plan document from spec scenarios and success criteria
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate a human-readable diff between two spec versions showing exactly what changed
Generate a full changelog from spec git history showing all requirement changes over time
Generate stakeholder notifications summarizing spec changes for team communication
Generate release notes for a specific version or tag from spec changes
Generate a custom checklist for the current feature based on user requirements.
Identify underspecified areas in the current feature spec by asking up
| name | speckit-spectest-plan |
| description | Generate a structured test plan document from spec scenarios and success criteria |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"spectest:commands/speckit.spectest.plan.md"} |
Produce a comprehensive test plan document from spec artifacts. The test plan defines what to test, how to test it, acceptance thresholds, and test environment requirements — everything a QA engineer or reviewer needs to validate the implementation.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). The user may specify:
.specify/scripts/bash/check-prerequisites.sh --json from the repo root and parsing FEATURE_DIR and AVAILABLE_DOCS. The spec lives at $FEATURE_DIR/spec.md (under specs/<feature>/), not under .specify/.spec.md completely — requirements, scenarios, success criteria, and assumptions.plan.md exists, read it for architecture context and technical decisions.tasks.md exists, read it for phase structure and dependencies.Test Plan Header: Generate document metadata.
# Test Plan: [Feature Name from spec.md]
| Field | Value |
|-------|-------|
| Spec | $FEATURE_DIR/spec.md |
| Plan | $FEATURE_DIR/plan.md |
| Date | 2026-04-10 |
| Status | Draft |
| Author | Generated by /speckit.spectest.plan |
Test Scope: Define what is and isn't covered.
## Scope
### In Scope
- All requirements from spec.md (8 items)
- All user scenarios (3 scenarios)
- All success criteria (5 criteria)
- Technical decisions from plan.md (4 decisions)
### Out of Scope
- Performance/load testing (not specified in spec)
- Third-party service integration testing
- Browser compatibility (unless specified in spec)
Test Strategy: Define the testing approach by level.
## Test Strategy
| Level | Purpose | Framework | Count |
|-------|---------|-----------|-------|
| Unit | Verify individual functions/methods | Jest/pytest | ~15 |
| Integration | Verify component interactions | Supertest | ~8 |
| E2E | Verify user workflows end-to-end | Playwright | ~4 |
| Manual | Edge cases requiring human judgment | Checklist | ~3 |
Test Cases by Requirement: Detail test cases for each spec requirement.
## Test Cases
### REQ-001: User signup with email/password
| ID | Test Case | Type | Priority | Expected Result |
|----|-----------|------|----------|-----------------|
| TC-001 | Valid email + strong password → account created | Unit | P1 | 201 Created, user in DB |
| TC-002 | Duplicate email → rejected | Unit | P1 | 409 Conflict |
| TC-003 | Invalid email format → validation error | Unit | P2 | 400 Bad Request |
| TC-004 | Weak password → rejected | Unit | P2 | 400 Bad Request |
| TC-005 | Full signup → login → access protected route | E2E | P1 | Success |
**Acceptance Threshold**: All P1 tests must pass. P2 failures require documented justification.
Test Cases by Scenario: Map user scenarios to test flows.
### Scenario: New User Registration
**Steps:**
1. Navigate to signup page
2. Enter valid email and password
3. Submit form
4. Verify confirmation email received
5. Click verification link
6. Verify account is active
7. Log in with new credentials
**Pass Criteria:** User can complete full flow in < 30 seconds
**Test Type:** E2E
**Automation:** Playwright script
Test Environment Requirements: Define what's needed to run tests.
## Test Environment
| Component | Requirement |
|-----------|------------|
| Database | PostgreSQL 15+ (test instance) |
| Runtime | Node.js 20+ |
| Dependencies | `npm install` completes without errors |
| Seed Data | Test fixtures in `tests/fixtures/` |
| Environment Variables | `DATABASE_URL`, `JWT_SECRET` (test values) |
Risk Assessment: Identify testing risks from spec assumptions.
## Risks
| Risk | Impact | Mitigation |
|------|--------|------------|
| External email service unavailable | E2E tests fail | Mock email service in test env |
| Database schema changes | All tests break | Run migrations before test suite |
| Rate limiting interferes with test speed | Flaky tests | Disable rate limiting in test env |
Output: Write the complete test plan document.
$FEATURE_DIR/test-plan.md by default (configurable via user input)