69 releases

0.6.20 Nov 7, 2024
0.6.17 Aug 14, 2024
0.6.16 Jul 25, 2024
0.5.9 Mar 13, 2024
0.2.9 Mar 9, 2022

#29 in Testing

Download history 29671/week @ 2024-07-26 28122/week @ 2024-08-02 29572/week @ 2024-08-09 32310/week @ 2024-08-16 30445/week @ 2024-08-23 32362/week @ 2024-08-30 34004/week @ 2024-09-06 29236/week @ 2024-09-13 32208/week @ 2024-09-20 29665/week @ 2024-09-27 32481/week @ 2024-10-04 33350/week @ 2024-10-11 29892/week @ 2024-10-18 30407/week @ 2024-10-25 30265/week @ 2024-11-01 30177/week @ 2024-11-08

126,397 downloads per month
Used in 163 crates (72 directly)

MIT/Apache

250KB
6.5K 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–11MB
~138K SLoC