Crate archetype

Crate archetype 

Source
Expand description

Archetype is a lightweight snapshot testing library with builtin diffing and test generation. It is largely used for golden testing JSON output, but can be instrumented to verify other types of output so long as the output goes to UTF-8 or raw bytes.

Macros§

snap_json_test
Create a new test for the given fixture.

Functions§

snap
Take a snapshot of a some UTF-8 encoded text under a file with the name key.
snap_json
Take a snapshot of JSON under a file with the name key.