workflow.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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/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/trace"
  15. instructions: "{installed_path}/instructions.md"
  16. validation: "{installed_path}/checklist.md"
  17. template: "{installed_path}/trace-template.md"
  18. # Variables and inputs
  19. variables:
  20. # Directory paths
  21. test_dir: "{project-root}/tests" # Root test directory
  22. source_dir: "{project-root}" # Source code directory (customize if needed, e.g., {project-root}/src or {project-root}/lib)
  23. # Workflow behavior
  24. coverage_levels: "e2e,api,component,unit" # Which test levels to trace
  25. gate_type: "story" # story | epic | release | hotfix - determines gate scope
  26. decision_mode: "deterministic" # deterministic (rule-based) | manual (team decision)
  27. # Output configuration
  28. default_output_file: "{test_artifacts}/traceability-matrix.md"
  29. # Required tools
  30. required_tools:
  31. - read_file # Read story, test files, BMad artifacts
  32. - write_file # Create traceability matrix, gate YAML
  33. - list_files # Discover test files
  34. - search_repo # Find tests by test ID, describe blocks
  35. - glob # Find test files matching patterns
  36. tags:
  37. - qa
  38. - traceability
  39. - test-architect
  40. - coverage
  41. - requirements
  42. - gate
  43. - decision
  44. - release
  45. execution_hints:
  46. interactive: false # Minimize prompts
  47. autonomous: true # Proceed without user input unless blocked
  48. iterative: true