Skip to content

[Feature] Test Suite #50

Description

@dannypurcell

Test coverage for the generator itself — not the generated projects.

Unit tests

  • Generated project contains expected files for each config combination
  • DotnetNamespace() converts project names correctly
  • BackendDir() returns correct dir for each backend
  • Template rendering produces valid content (no unresolved {{ in output)
  • ETL sub-project omitted when DataProcessing: false
  • CLI sub-project omitted when CLIClient: none

Functional tests

  • Generate a C#/.NET project → docker compose up → all health endpoints respond
  • Generate a Python/FastAPI project → same
  • Generate a Go/Echo project → same
  • Each test runs in a temp dir, tears down containers after

Sub-tasks

  • Unit tests for config helpers
  • Unit tests for generator file output
  • Functional test harness (generate + compose up + curl)
  • Functional test: C#/.NET stack
  • Functional test: Python/FastAPI stack (blocked on Python templates)
  • Functional test: Go/Echo stack (blocked on Go templates)
  • Wire functional tests into CI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions