Rust port of Point-Free's swift-snapshot-testing -- inline and file-based snapshot testing.
A snapshot testing library for Rust:
snapshot-testing-- Core snapshot assertion libraryinline-snapshot-testing-- Inline snapshot assertions (updates test source on failure)snapshot-testing-custom-dump-- Pretty-print and diff integration
# Run all tests
cargo test
# Lint
cargo clippy
# Generate docs
cargo doc --open| Crate | Purpose |
|---|---|
snapshot-testing |
Core snapshot assertion library |
inline-snapshot-testing |
Inline snapshots that update source code |
snapshot-testing-custom-dump |
Custom dump integration for readable diffs |
Used by the TCA Rust Port and other sibling crates for test assertions. The TestStore in TCA uses snapshot testing for exhaustive state verification.
- Point-Free -- original swift-snapshot-testing
MIT