Skip to content

Add Contract Test Snapshot Verification as CI Check to Prevent Regressions #334

Description

@ALLEN-AYODEJI

Add Contract Test Snapshot Verification as CI Check to Prevent Regressions

Description

Contract tests have snapshot files but no CI step verifies snapshots match. If a developer modifies contract behavior without updating snapshots, snapshot tests silently pass without comparing against expected output.

Requirements & Context

Add snapshot verification step to contract-ci.yml. Configure snapshot mode in test.rs to fail on mismatch. Add snapshot update instructions.

Suggested Execution

Branch: ix/ci-contract-snapshot-verification

Implement Changes

(1) Update test.rs snapshot mode to
equire in CI (2) Add snapshot update make target (3) Add CI step for snapshot verification (4) Document snapshot workflow

Test & Commit

Modify contract behavior, verify snapshot test fails until snapshots are updated.

Example Commit Message

ix(ci): add contract test snapshot verification step to prevent undetected snapshot drift

Guidelines

  • Use snapshot verification mode in CI
  • Add make target for updating snapshots

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions