Skip to content

Add expected stdout and stderr fixtures to wave-test metadata #369

Closed

Description

@LunaStev

Problem

The Wave E2E runner can validate exit status and compiled artifacts, but successful native tests are not able to declare their expected stdout or stderr. Output regressions may therefore pass as long as the process exits successfully and does not match a generic failure pattern.

Proposed contract

Support fixture-backed metadata such as:

// wave-test: stdout-file=expected/hello.stdout, stderr-file=expected/hello.stderr

Scope

  • Add optional stdout/stderr fixture fields to TestMetadata.
  • Resolve paths under a documented test fixture root.
  • Reject absolute paths and path traversal.
  • Compare exact UTF-8 output after documenting newline behavior.
  • Show a readable diff on mismatch.
  • Add metadata parser and runner unit tests.
  • Migrate at least two stable E2E cases.

Completion criteria

  • Output contracts are optional and do not affect existing tests.
  • Mismatches fail with expected/actual context.
  • Empty output can be asserted explicitly.
  • JSON test reports record output-contract failures.
  • The metadata guide in Document the wave-test metadata contract #357 is updated.

Activity

  1. added
    enhancement
    good first issue
    needs testing
    on Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueneeds testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions