AutoMax
ReferenceCLI commands

automax watch

Regenerate BDD specs on change and re-run them in Playwright UI mode.

automax watch [-p <slug>] [-e <env>] [-t <expr>] [-l <layer>]... [-b <browser>]... [--no-ui] [--headed]

Two children run with the same AUTOMAX_* environment that automax run uses:

  1. bddgen --watch regenerates .features-gen/<slug>/<layer> whenever a feature or step file changes.
  2. playwright test --ui (or --watch with --no-ui) restricted to the generated projects of the selection.
FlagMeaning
-p, -e, -t, -l, -bsame selection flags as automax run
--no-uiterminal watch mode instead of the UI window
--headedheaded browsers in terminal watch mode
automax watch -p demo-shop -e staging -l ui -b chromium -t @smoke

Stop with Ctrl+C; both children are terminated together. Exit code 2 when the selection matches no Playwright project.