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

#38 in Testing

Download history 29804/week @ 2024-08-24 34089/week @ 2024-08-31 32151/week @ 2024-09-07 29590/week @ 2024-09-14 32353/week @ 2024-09-21 29456/week @ 2024-09-28 33233/week @ 2024-10-05 34176/week @ 2024-10-12 28376/week @ 2024-10-19 31249/week @ 2024-10-26 30278/week @ 2024-11-02 29996/week @ 2024-11-09 35027/week @ 2024-11-16 35146/week @ 2024-11-23 38486/week @ 2024-11-30 29064/week @ 2024-12-07

142,124 downloads per month
Used in 167 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
~133K SLoC