46 releases

new 0.5.12 May 17, 2024
0.5.9 Mar 13, 2024
0.4.15 Dec 8, 2023
0.4.14 Oct 2, 2023
0.2.9 Mar 9, 2022

#169 in Testing

Download history 15671/week @ 2024-01-26 16685/week @ 2024-02-02 15616/week @ 2024-02-09 17305/week @ 2024-02-16 20102/week @ 2024-02-23 27930/week @ 2024-03-01 22272/week @ 2024-03-08 19899/week @ 2024-03-15 18662/week @ 2024-03-22 18676/week @ 2024-03-29 17474/week @ 2024-04-05 16930/week @ 2024-04-12 17121/week @ 2024-04-19 17419/week @ 2024-04-26 17871/week @ 2024-05-03 13460/week @ 2024-05-10

68,092 downloads per month
Used in 140 crates (61 directly)

MIT/Apache

220KB
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–12MB
~142K SLoC