glob_test 0.2.0

Generate tests from a glob pattern
Documentation
1
2
3
4
5
6
use std::path::Path;

#[glob_test::glob("./usage/inputs/**/*.txt")]
fn snapshots(path: &Path) {
    insta::assert_snapshot!(std::fs::read_to_string(path).unwrap());
}