Skip to content

Add Soroban test-snapshot hygiene check to contracts CI #141

Description

@codebestia

Add test_snapshots/ to contracts/.gitignore. Add a CI step after cargo test that fails if any test_snapshots/*.json files exist, since their presence indicates a test is producing host errors. If a test legitimately produces a snapshot, it should be explicitly allowlisted.

Acceptance criteria:

  • contracts/.gitignore includes test_snapshots/
  • CI step fails if any snapshot file exists after the test run
  • Existing snapshot files removed from the repo in the PR adding this check
  • A passing test suite produces no snapshot files

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions