From 9aeeb4eb5b198671ff77b10cd5b9828104000cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Thu, 12 Mar 2026 18:17:22 +0100 Subject: [PATCH] Scope tests in cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- tests/file_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");