From 5d9f9b64de7d3f360a79a42c89ffd9d8d6157727 Mon Sep 17 00:00:00 2001 From: R3ZV Date: Sun, 17 Nov 2024 16:25:12 +0200 Subject: [PATCH] Config for allow missing --- tests/{if_present.rs => allow_missing.rs} | 4 ++-- tests/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename tests/{if_present.rs => allow_missing.rs} (86%) diff --git a/tests/if_present.rs b/tests/allow_missing.rs similarity index 86% rename from tests/if_present.rs rename to tests/allow_missing.rs index 32054a29da..2d74f27a78 100644 --- a/tests/if_present.rs +++ b/tests/allow_missing.rs @@ -1,7 +1,7 @@ use super::*; #[test] -fn without_if_present() { +fn fail_on_unknown_recipe() { Test::new() .arg("execute") .justfile( @@ -19,7 +19,7 @@ fn without_if_present() { #[test] fn ignore_unknown_recipe() { Test::new() - .args(["--if-present", "execute"]) + .args(["--allow-missing", "execute"]) .justfile( " build: diff --git a/tests/lib.rs b/tests/lib.rs index 2576e78289..fb0cf66145 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -33,6 +33,7 @@ mod test; mod allow_duplicate_recipes; mod allow_duplicate_variables; +mod allow_missing; mod assert_stdout; mod assert_success; mod assertions; @@ -64,7 +65,6 @@ mod functions; #[cfg(unix)] mod global; mod groups; -mod if_present; mod ignore_comments; mod imports; mod init;