Skip to content

E2E testing #60

Description

@NotAShelf

It seems that one of the weakest aspects of ndg currently is validating the default templates beyond a real human looking at the generating pages, and the rest of us hoping it's enough. As an alternative I'd like to integrate an end-to-end test setup that tests thet entire pipeline. Something like:

inputs (content, config, templates) -> generator binary -> output (HTML, assets) -> HTTP view (browser layer)

Each test should:

  1. Create a temporary workspace (mock input)
  2. Run ndg to generate output
  3. Serve the generated output
  4. Query the site like a browser would
  5. Verify HTML, links, and metadata

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions