#cli #test #assert #command

dev bin+lib snapbox

Snapshot testing toolbox

26 releases

new 0.4.10 Mar 16, 2023
0.4.7 Feb 20, 2023
0.4.3 Nov 26, 2022
0.2.10 May 2, 2022
0.2.9 Mar 9, 2022

#120 in Testing

Download history 9519/week @ 2022-11-28 7216/week @ 2022-12-05 7997/week @ 2022-12-12 8071/week @ 2022-12-19 6880/week @ 2022-12-26 7893/week @ 2023-01-02 9569/week @ 2023-01-09 8718/week @ 2023-01-16 9207/week @ 2023-01-23 11546/week @ 2023-01-30 8982/week @ 2023-02-06 10865/week @ 2023-02-13 10262/week @ 2023-02-20 11089/week @ 2023-02-27 10322/week @ 2023-03-06 9540/week @ 2023-03-13

42,571 downloads per month
Used in 71 crates (37 directly)

MIT/Apache

155KB
3.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–8.5MB
~146K SLoC