diff --git a/tests/file_tests.rs b/tests/file_tests.rs index 8e01a7d..db3c666 100644 --- a/tests/file_tests.rs +++ b/tests/file_tests.rs @@ -3,13 +3,14 @@ use std::path::Path; use nomo::Context; +test_each_file::test_each_path! { for ["nomo"] in "./tests/cases/" as cases => check_for_input } + #[derive(serde::Serialize)] struct Info { input: String, context: HashMap, } -test_each_file::test_each_path! { for ["nomo"] in "./tests/cases/" => check_for_input } fn check_for_input([path]: [&Path; 1]) { let mut settings = insta::Settings::clone_current(); settings.set_snapshot_path("cases");