Registry / testing / snapbox

snapbox

JSON →
library1.2.2rscratesunverified

A snapshot testing toolbox for Rust, enabling easy comparison of output against stored snapshots.

# Cargo.toml [dependencies] snapbox = "1.2.2"
INSTALL
IMPORT
SIG · SNAPBOX
S
snapbox
testingrustv1.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Snapshot
use snapbox::Snapshot;

Asserts that a string matches a stored snapshot.

use snapbox::Snapshot; fn main() { let snapshot = Snapshot::new(); snapshot.assert_eq("expected output"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
snapbox — cargo add snapbox · libregistry