Generate tests from UAT criteria

gsd:add-testsskillsetup L23,035
davepoon/buildwithclaude
What it does

Generate unit and E2E tests from phase specification

Best for

Generating tests from phase specifications when UAT criteria and RED-GREEN workflows guide coverage.

Inputs
  • · Phase number
  • · Optional test focus instructions
Outputs
  • · Generated test files
  • · Git commit with tests
Requires
  • · Bash scripting
  • · git
  • · JSON/YAML processing
Preconditions

Phase spec complete (SUMMARY.md, CONTEXT.md, VERIFICATION.md exist); implementation files present

Failure modes
  • · Test plan not approved by user → stops before generation
  • · RED-GREEN verification fails → reports gap
  • · Phase spec incomplete → stops with missing spec list
Trust signals
  • · User approval gates (classification, plan, RED-GREEN)
  • · Gap reporting on incomplete coverage