Skip to content

Generated App Tests: add th generate --with-tests scaffold #28

@snissn

Description

@snissn

Background

  • Tokenhost Builder now enforces builder-level CI (static, integration-local) and canonical job-board integration tests.
  • Next step is generated-app-level testing so every app emitted by the generator includes runnable tests.

Scope

  • Add th generate --with-tests (and define default behavior: on by default or explicit opt-in).
  • Emit a tests workspace/package inside generated app output.
  • Emit package scripts for generated apps (minimum: test, test:contract, test:ui placeholders when applicable).

Implementation details

  • CLI/API:
    • th generate option surface and help text.
    • generated README in output describes how to run generated tests.
  • Template wiring:
    • add reusable test template assets under packages/templates/next-export-ui (or adjacent package).
    • ensure generated app build still works when tests are included.

Acceptance criteria

  • th generate <schema> --with-tests emits a deterministic tests directory.
  • Generated app has runnable test commands without manual setup changes.
  • Existing generator tests updated/expanded to assert emitted test scaffold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions