👑 Rust Goldenfile
Simple goldenfile testing in Rust.
Goldenfile tests generate one or more output files as they run. At the end of the test, the generated files are compared to checked-in "golden" files produced by previous runs. This ensures that all changes to goldenfiles are intentional, explicit, and version controlled.
You can use goldenfiles to test the output of a parser, the order of a graph traversal, the result of a simulation, or anything else that shouldn't change without a human's approval.
Usage
extern crate goldenfile;
use Write;
use Mint;
Contributing
Feel free to submit pull requests for new and better differs or other improvements! Run scripts/install-git-hooks
to install pre-commit test and formatting hooks.
This project follows the Rust community's Code of Conduct.