snapshot-testing
Assert that strings equal easily updatable snapshot files. Show nice colored diffs if not.
Usage Example
/// Regression test for `impl Display` of a complex type.
# Create (or update) the snapshot file
UPDATE_SNAPSHOTS=yes
# Ensure the Display impl is not accidentally changed
Diffing Engine
We use the excellent insta
diffing engine without suffering from Issue #425: GitHub syntax highlights insta snapshots like Jest Snapshots which unfortunately makes diffs very hard to read.
Audit the Code
This crate is very small and easily audited with the following command [^1]:
|
|
[^1]: Please also see crates.io Data Access Policy.