workflow.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Test Architect workflow: framework
  2. name: testarch-framework
  3. description: "Initialize production-ready test framework architecture (Playwright or Cypress) with fixtures, helpers, and configuration"
  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/framework"
  15. instructions: "{installed_path}/instructions.md"
  16. validation: "{installed_path}/checklist.md"
  17. # Variables and inputs
  18. variables:
  19. test_dir: "{project-root}/tests" # Root test directory
  20. use_typescript: true # Prefer TypeScript configuration
  21. framework_preference: "auto" # auto, playwright, cypress - user can override auto-detection
  22. project_size: "auto" # auto, small, large - influences framework recommendation
  23. # Output configuration
  24. default_output_file: "{test_dir}/README.md" # Main deliverable is test setup README
  25. # Required tools
  26. required_tools:
  27. - read_file # Read package.json, existing configs
  28. - write_file # Create config files, helpers, fixtures, tests
  29. - create_directory # Create test directory structure
  30. - list_files # Check for existing framework
  31. - search_repo # Find architecture docs
  32. tags:
  33. - qa
  34. - setup
  35. - test-architect
  36. - framework
  37. - initialization
  38. execution_hints:
  39. interactive: false # Minimize prompts; auto-detect when possible
  40. autonomous: true # Proceed without user input unless blocked
  41. iterative: true