Skip to content

docs: document the test snapshot commit policy - #54

Merged
collinsezedike merged 1 commit into
mainfrom
docs/snapshot-commit-policy
Jul 30, 2026
Merged

docs: document the test snapshot commit policy#54
collinsezedike merged 1 commit into
mainfrom
docs/snapshot-commit-policy

Conversation

@collinsezedike

Copy link
Copy Markdown
Collaborator

Summary

Adds the rule CONTRIBUTING.md's Testing philosophy section was missing: whether to commit a test_snapshots/ file comes down to reproducibility, not test type. Hand-written tests produce a stable file and should commit it; proptest_* modules produce a different file every run and should .gitignore the module's directory instead.

This has been the repo's actual practice throughout, this just writes it down.

Closes #24

Test plan

  • Docs-only change, no Rust source touched
  • Verified the described .gitignore pattern (test_snapshots/test/<module>/) matches what's actually there for both existing proptest modules

@collinsezedike
collinsezedike merged commit 8deb403 into main Jul 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Chore] Document the test snapshot commit policy in CONTRIBUTING.md

1 participant