選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

instructions.md 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!-- Powered by BMAD-CORE™ -->
  2. # Test Design and Risk Assessment
  3. **Version**: 5.0 (Step-File Architecture)
  4. ---
  5. ## Overview
  6. Plans comprehensive test coverage strategy with risk assessment, priority classification, and execution ordering. This workflow operates in **two modes**:
  7. - **System-Level Mode (Phase 3)**: Testability review of architecture before solutioning gate check
  8. - **Epic-Level Mode (Phase 4)**: Per-epic test planning with risk assessment
  9. The workflow auto-detects which mode to use based on project phase and user intent.
  10. ---
  11. ## WORKFLOW ARCHITECTURE
  12. This workflow uses **step-file architecture** for disciplined execution:
  13. ### Core Principles
  14. - **Micro-file Design**: Each step is a self-contained instruction file
  15. - **Just-In-Time Loading**: Only the current step file is in memory
  16. - **Sequential Enforcement**: Execute steps in order without skipping
  17. - **State Tracking**: Write outputs only when instructed, then proceed
  18. ### Step Processing Rules (Non-Negotiable)
  19. 1. **READ COMPLETELY**: Read the entire step file before taking any action
  20. 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order
  21. 3. **WAIT FOR INPUT**: Halt when user input is required
  22. 4. **LOAD NEXT**: Only load the next step file when directed
  23. ---
  24. ## INITIALIZATION SEQUENCE
  25. ### 1. Configuration Loading
  26. From `workflow.yaml`, resolve:
  27. - `config_source`, `test_artifacts`, `user_name`, `communication_language`, `document_output_language`, `date`
  28. ### 2. First Step
  29. Load, read completely, and execute:
  30. `{skill-root}/steps-c/step-01-detect-mode.md`
  31. ### 3. Resume Support
  32. If the user selects **Resume** mode, load, read completely, and execute:
  33. `{skill-root}/steps-c/step-01b-resume.md`
  34. This checks the output document for progress tracking frontmatter and routes to the next incomplete step.
  35. ---
  36. ## OUTPUT GENERATION GUIDANCE
  37. When populating templates in step 5, apply the following guidance for these sections:
  38. ### Not in Scope
  39. - Identify components, third-party services, or subsystems NOT covered by this test plan
  40. - For each excluded item, provide reasoning (why excluded) and mitigation (how risk is addressed elsewhere)
  41. - Common exclusions: external vendor APIs tested by upstream teams, legacy modules outside the current phase scope, infrastructure already covered by platform team monitoring
  42. ### Entry and Exit Criteria
  43. - **Entry criteria**: Derive from Dependencies and Test Blockers -- what must be resolved before QA can start testing
  44. - **Exit criteria**: Derive from Quality Gate Criteria -- what constitutes "done" for the testing phase
  45. - Include project-specific criteria based on context (e.g., "feature flag enabled in staging", "seed data loaded", "pre-implementation blockers resolved")
  46. ### Project Team (Optional)
  47. - Include only if roles/names are known or responsibility mapping is needed
  48. - Extract names and roles from PRD, ADR, or project context if available
  49. - If names are unknown, either omit or use role placeholders for drafts
  50. - Map testing responsibilities to each role (e.g., who owns E2E tests, who signs off)
  51. ### Tooling and Access (System-Level QA Document Only)
  52. - Include only if non-standard tools or access requests are required
  53. - List notable tools/services needed for test execution and any access approvals
  54. - Avoid assuming specific vendors unless the project context names them
  55. - Mark each item's status as Ready or Pending based on available information
  56. - This section applies only to `test-design-qa-template.md` output
  57. ### Implementation Planning Handoff (Optional)
  58. - Include only if test design produces implementation tasks that must be scheduled
  59. - Derive items from Dependencies & Test Blockers, tooling/access needs, and QA infra setup
  60. - If no dedicated QA, assign ownership to Dev/Platform as appropriate
  61. - Keep the list short; avoid per-milestone breakdown tables
  62. ### Interworking & Regression
  63. - Identify services and components that interact with or are affected by the feature under test
  64. - For each, define what existing regression tests must pass before release
  65. - Note any cross-team coordination needed for regression validation (e.g., shared staging environments, upstream API contracts)