Skip to content

Add stdin-file metadata to Wave end-to-end tests #353

Closed

Description

@LunaStev

Problem

tools/run_tests.py hard-codes standard input for test22.wave and test74.wave by filename. Renaming a test silently changes its behavior, and new input-driven tests require another Python special case.

Proposed contract

Add a metadata key that points to a repository test fixture, for example:

// wave-test: stdin-file=inputs/menu-selection.txt

The path should resolve relative to tests/cases/ or another explicitly documented fixture root.

Scope

  • Add an optional stdin_file field to TestMetadata.
  • Parse and validate stdin-file=....
  • Reject absolute paths and paths that escape the fixture root.
  • Read the file as UTF-8 and pass it to the test process.
  • Migrate test22.wave and test74.wave.
  • Remove their filename-based branches.

Completion criteria

  • Input-driven tests no longer depend on numeric filenames.
  • Missing, invalid, and escaping paths have unit tests.
  • Existing E2E behavior remains unchanged.
  • Python tooling tests pass.

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