Skip to content

[Request]: Multi-step fixtures with captured values, a restart step and quiet test output #256

Closed

Description

@jimhoyd

Tried: test a create -> read -> update -> restart lifecycle with urlcode test.
Expected: multi-step fixtures.
Got: fixtures are single requests with no captured values, so both runs added a separate node:test harness that spawns npx urlcode serve (slow; killing npx can orphan the server; run 2 copied the project to a temp dir to isolate data). Run 1 also found urlcode test prints noisy JSON request logs by default.
Suggestion: fixture step chaining with captured variables and a restart step; an in-process test helper (start server on port 0 with data isolation); quiet output by default with --verbose.
Evidence: an A/B benchmark on URLCode 0.4.1 with Sonnet 5 agents building the same Todo app from the repo docs. Run 1 (benchmark Agent B, no authoring skill, no browser check) and run 2 (session "Todo application with URLCode", authoring skill loaded, tightened prompt) hit this independently. n=1 each; single small app, so treat frequency as anecdotal. The Agent A control (no URLCode) needed 2 shell calls and 0 dependencies for the same app.

Activity

  1. added
    enhancement
    on Sep 20, 2026
  2. added
    needs-decision
    ai-first
    on Sep 20, 2026
  3. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision: build it.

    • Add ordered steps to a tests/requests.json fixture, with capture (from a JSON body or header) and {{name}} substitution between steps.
    • Add a restart step that closes and restarts the runtime on the same project and data directory, so a create -> read -> update -> restart lifecycle needs no hand-written node:test harness.
    • Export the existing startServer({port: 0}) with a data-isolation option as the in-process test helper.
    • Already done: quiet-by-default urlcode test output with --verbose (Quiet urlcode test output by default; record multi-step fixture decision #273).

    Update the fixture schema, docs/READINESS.md (coverage counting for multi-step cases) and add an executable example in the same PR. Evidence is n=1 per run; proceeding is a maintainer decision.

  4. added
    in-progress
    and removed
    needs-decision
    on Sep 20, 2026
  5. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: implementation started by an agent against the maintainer decision on this issue; a PR will be linked here when it opens.

  6. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: PR #303 opened: steps/capture/restart fixtures and startServer data-dir isolation. Held for a maintainer check of the narrow grantDataDir test-harness grant.

  7. added
    important
    on Sep 20, 2026
  8. removed
    in-progress
    on Sep 20, 2026
  9. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Implemented in #303: ordered steps in tests/requests.json with capture and {{name}} substitution, a restart step on the same project and data directory, and startServer data-dir isolation. urlcode test is quiet by default (#273). A follow-up commit keeps urlcode test working on a read-only filesystem, which the container smoke test caught. verify-deployment skips fixtures that contain a restart step.

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

    ai-firstenhancementimportant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions