GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(e2e): describe argv steps in the snapshot test README by Dunqing · Pull Request #873 · voidzero-dev/vite-task

Conversation

@Dunqing

@Dunqing Dunqing commented Oct 22, 2026

Copy link
Copy Markdown
Member

Motivation

The e2e snapshot test README describes a step format the harness doesn't accept. It shows string steps such as "vp run build" and a table form with command, and says steps run through /bin/sh. Step in main.rs is an argv array or a table with argv. A string step makes the test binary panic while it loads the fixtures, before any case runs, and steps start without a shell in a cleared environment, so a fixture written from the README doesn't run.

Changes

  • Replace both examples with argv steps, and the shell pipe with vtt pipe-stdin.
  • Document the step keys (argv, cwd, comment, envs, interactions, formatted-snapshot), the case keys (name, steps, comment, cwd, cfg, ignore), how programs are found, the full write-key list, the step timeout, and how new snapshots are written as <name>.md.new and accepted with UPDATE_SNAPSHOTS=1.
  • Say the tests run vt, not vp, and correct the doc comment on a step's comment field: the snapshot shows it under the step's heading, not appended to the command line.

The examples were run through the harness as written.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Dunqing added 2 commits October 22, 2026 01:49
@Dunqing
docs(e2e): describe argv steps in the snapshot test README
ed51088
The README showed string steps ("vp run build") and a table form with
`command`, and said steps run through /bin/sh. `Step` in main.rs is an
argv array or a table with `argv`, a string step makes the test binary
panic while loading fixtures, and steps start without a shell in a
cleared environment. Update the examples and notes to match: the table
and case keys, how `vt`/`vtt` are found, the full `write-key` list,
`vtt pipe-stdin` instead of shell pipes, the step timeout, and how new
snapshots are written and accepted.
@Dunqing
docs(e2e): say the tests run vt, and where a step comment appears
33772a1
The README said the tests execute `vp`; they run the `vt` binary built
for the test. The `comment` field of a step was documented as appended
to the command line, but the snapshot shows it under the step heading.
@Dunqing
Dunqing requested a review from wan9chi October 22, 2026 06:43
wan9chi added 2 commits October 23, 2026 13:17
@wan9chi
Merge branch 'main' into docs-e2e-snapshots-readme-steps
d2e0809
@wan9chi
Merge branch 'main' into docs-e2e-snapshots-readme-steps
174589b
@wan9chi
wan9chi merged commit 5acb132 into voidzero-dev:main Oct 23, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 23, 2026
chore: bump vite-task to 9b7dd80 voidzero-dev/vite-plus#3220
Closed
chore: bump vite-task to 0346c26 voidzero-dev/vite-plus#3226
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@wan9chi wan9chi Awaiting requested review from wan9chi

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Dunqing @wan9chi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.