workflow.yaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Test Architect workflow: test-design
  2. name: testarch-test-design
  3. description: "Dual-mode workflow: (1) System-level testability review in Solutioning phase, or (2) Epic-level test planning in Implementation phase. Auto-detects mode based on project phase."
  4. author: "BMad"
  5. # Critical variables from config
  6. config_source: "{project-root}/_bmad/tea/config.yaml"
  7. output_folder: "{config_source}:output_folder"
  8. test_artifacts: "{config_source}:test_artifacts"
  9. user_name: "{config_source}:user_name"
  10. communication_language: "{config_source}:communication_language"
  11. document_output_language: "{config_source}:document_output_language"
  12. date: system-generated
  13. # Workflow components
  14. installed_path: "{project-root}/_bmad/tea/workflows/testarch/test-design"
  15. instructions: "{installed_path}/instructions.md"
  16. validation: "{installed_path}/checklist.md"
  17. # Note: Template selection is mode-based (see instructions.md Step 1.5):
  18. # - System-level: test-design-architecture-template.md + test-design-qa-template.md
  19. # - Epic-level: test-design-template.md (unchanged)
  20. template: "{installed_path}/test-design-template.md"
  21. # Variables and inputs
  22. variables:
  23. design_level: "full" # full, targeted, minimal - scope of design effort
  24. mode: "auto-detect" # auto-detect (default), system-level, epic-level
  25. # Output configuration
  26. # Note: Actual output file determined dynamically based on mode detection
  27. # Declared outputs for new workflow format
  28. outputs:
  29. # System-Level Mode (Phase 3) - TWO documents
  30. - id: test-design-architecture
  31. description: "System-level test architecture: Architectural concerns, testability gaps, NFR requirements for Architecture/Dev teams"
  32. path: "{test_artifacts}/test-design-architecture.md"
  33. mode: system-level
  34. audience: architecture
  35. - id: test-design-qa
  36. description: "System-level test design: Test execution recipe, coverage plan, Sprint 0 setup for QA team"
  37. path: "{test_artifacts}/test-design-qa.md"
  38. mode: system-level
  39. audience: qa
  40. # Epic-Level Mode (Phase 4) - ONE document (unchanged)
  41. - id: epic-level
  42. description: "Epic-level test plan (Phase 4)"
  43. path: "{test_artifacts}/test-design-epic-{epic_num}.md"
  44. mode: epic-level
  45. # Note: No default_output_file - mode detection determines which outputs to write
  46. # Required tools
  47. required_tools:
  48. - read_file # Read PRD, epics, stories, architecture docs
  49. - write_file # Create test design document
  50. - list_files # Find related documentation
  51. - search_repo # Search for existing tests and patterns
  52. tags:
  53. - qa
  54. - planning
  55. - test-architect
  56. - risk-assessment
  57. - coverage
  58. execution_hints:
  59. interactive: false # Minimize prompts
  60. autonomous: true # Proceed without user input unless blocked
  61. iterative: true