13 releases

Uses new Rust 2021

0.3.1 Aug 3, 2022
0.3.0 Aug 1, 2022
0.2.10 May 2, 2022
0.2.9 Mar 9, 2022

#20 in #assert

Download history 3700/week @ 2022-04-22 4085/week @ 2022-04-29 4030/week @ 2022-05-06 3450/week @ 2022-05-13 3718/week @ 2022-05-20 3781/week @ 2022-05-27 3909/week @ 2022-06-03 3591/week @ 2022-06-10 4277/week @ 2022-06-17 3746/week @ 2022-06-24 4421/week @ 2022-07-01 4269/week @ 2022-07-08 4277/week @ 2022-07-15 4034/week @ 2022-07-22 5265/week @ 2022-07-29 4382/week @ 2022-08-05

18,858 downloads per month
Used in 16 crates (10 directly)

MIT/Apache

130KB
3K SLoC

snapbox

When you have to treat your tests like pets, instead of cattle

Documentation License Crates Status

snapbox is a snapshot-testing toolbox that is ready to use for verifying output from

  • Function return values
  • CLI stdout/stderr
  • Filesystem changes

It is also flexible enough to build your own test harness like trycmd.

See the docs for more.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–6.5MB
~111K SLoC