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
42,571 downloads per month
Used in 71 crates
(37 directly)
155KB
3.5K
SLoC
snapbox
When you have to treat your tests like pets, instead of cattle
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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