#cli #test #assert #command

dev bin+lib snapbox

Snapshot testing toolbox

11 releases

0.2.10 May 2, 2022
0.2.9 Mar 9, 2022

#26 in #assert

Download history 683/week @ 2022-03-07 513/week @ 2022-03-14 432/week @ 2022-03-21 831/week @ 2022-03-28 540/week @ 2022-04-04 486/week @ 2022-04-11 2669/week @ 2022-04-18 3762/week @ 2022-04-25 4156/week @ 2022-05-02 3813/week @ 2022-05-09

14,462 downloads per month
Used in 11 crates (7 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–1.7MB
~34K SLoC