-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
enhancementImprove the expectedImprove the expected
Description
Did we ever talk about snapshot tests? I don't recall, and I didn't find an issue in this or the assert_{cmd,cli} repos.
The idea is this: Instead of manually writing predicate::path::eq_file(Path::new("some.file")).utf8().unwrap();
, you'd have a predicate::eq_snapshot!()
macro that expands to a uniq filename predicate with the ability to create that file with the content it gets on the first test run or when using RECORD_SNAPSHOTS=1
or something similar.
Metadata
Metadata
Assignees
Labels
enhancementImprove the expectedImprove the expected