Expand description
Simple golden testing framework.
You can simply create a golden file by calling Golden::new.
let target = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("testdata/mukai.txt");
let golden = okane_golden::Golden::new(target)?;
golden.assert("zazen boys\n");If the test fails, simply pass UPDATE_GOLDEN=1 env var to rerun the test.
Structsยง
- Golden
- Golden object to maintain the expected content.