workflow.yaml 1.7 KB

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