Overview of snapbox snapshot testing
mainsnapbox is a snapshot-testing toolbox designed to verify various types of output during testing. It is useful for ensuring consistency in:
- Function return values: Verifying the data returned by your Rust functions.
- CLI stdout/stderr: Capturing and comparing command-line interface output.
- Filesystem changes: Verifying that files are created, modified, or deleted as expected.
It is built to be flexible enough to serve as a foundation for custom test harnesses (similar to trycmd).