2
0

workflow.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Test Architect workflow: trace (enhanced with gate decision)
  2. name: testarch-trace
  3. description: "Generate requirements-to-tests traceability matrix, analyze coverage, and make quality gate decision (PASS/CONCERNS/FAIL/WAIVED)"
  4. author: "BMad"
  5. # Critical variables from config
  6. config_source: "{project-root}/_bmad/bmm/config.yaml"
  7. output_folder: "{config_source}:output_folder"
  8. user_name: "{config_source}:user_name"
  9. communication_language: "{config_source}:communication_language"
  10. document_output_language: "{config_source}:document_output_language"
  11. date: system-generated
  12. # Workflow components
  13. installed_path: "{project-root}/_bmad/bmm/workflows/testarch/trace"
  14. instructions: "{installed_path}/instructions.md"
  15. validation: "{installed_path}/checklist.md"
  16. template: "{installed_path}/trace-template.md"
  17. # Variables and inputs
  18. variables:
  19. # Directory paths
  20. test_dir: "{project-root}/tests" # Root test directory
  21. source_dir: "{project-root}/src" # Source code directory
  22. # Workflow behavior
  23. coverage_levels: "e2e,api,component,unit" # Which test levels to trace
  24. gate_type: "story" # story | epic | release | hotfix - determines gate scope
  25. decision_mode: "deterministic" # deterministic (rule-based) | manual (team decision)
  26. # Output configuration
  27. default_output_file: "{output_folder}/traceability-matrix.md"
  28. # Required tools
  29. required_tools:
  30. - read_file # Read story, test files, BMad artifacts
  31. - write_file # Create traceability matrix, gate YAML
  32. - list_files # Discover test files
  33. - search_repo # Find tests by test ID, describe blocks
  34. - glob # Find test files matching patterns
  35. tags:
  36. - qa
  37. - traceability
  38. - test-architect
  39. - coverage
  40. - requirements
  41. - gate
  42. - decision
  43. - release
  44. execution_hints:
  45. interactive: false # Minimize prompts
  46. autonomous: true # Proceed without user input unless blocked
  47. iterative: true