Skip to content

Fixtures: hermetic test databases and seeds; assert one JSON property; resolved captures in failures #930

Closed

Description

@jimhoyd

From the second agent workflow trial.

  1. urlcode test and audit run against the site's live data/*.sqlite.

    • Authenticated fixtures only pass after running urlcode-auth migrate, create-user and urlcode-store members add by hand.
    • Records persist between runs: a rerun failed 22 of 26 cases, because creating a second wallet hit a 409.
    • The generated CI workflow has no step that provisions accounts or members.

    Expected: a hermetic database per run, or a declared test seed for accounts and members, plus a documented CI path.

  2. Only exact expectBody is possible. You can't assert balance == 100 in a body that also carries generated ids and timestamps. Expected: JSON-pointer matching, as expectSignals.match already has.

  3. Failure output shows unresolved captures. It prints /probe/…/{{bal}} rather than the substituted value.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions