Go Teatest Golden
Use this skill when Go owns the canonical terminal output and you need fresh
*.golden artifacts for downstream Crystal parity checks.
Scripts
scripts/bootstrap_go_module.sh: install module dependencies locallyscripts/run_go_teatest_golden.sh: default golden update pathscripts/generate_go_golden.sh: raw capture fallback
Default flow
- Bootstrap the Go workdir if needed.
- Run the Go teatest update command to regenerate goldens.
- Sync those goldens into the Crystal repo before Crystal verification.
- Use raw capture only when no teatest harness exists.
Typical commands
./scripts/bootstrap_go_module.sh --workdir <go_dir>
./scripts/run_go_teatest_golden.sh --workdir <go_dir> --cmd 'go test ./...'
Guardrails
- Keep
GOCACHEandGOMODCACHElocal to the workdir when possible. - Do not treat Crystal output as an oracle when Go fixtures are available.
- If the task is only Crystal-side verification, route to
bubbletea-crystal-teatest-golden.