1
1
mirror of https://github.com/casey/just.git synced 2024-11-22 18:34:06 +03:00
just/tests/allow_missing.rs
2024-11-17 16:27:19 +02:00

34 lines
523 B
Rust

use super::*;
#[test]
fn fail_on_unknown_recipe() {
Test::new()
.arg("execute")
.justfile(
"
build:
echo \"Building...\"
",
)
.stderr("error: Justfile does not contain recipe `execute`.\n")
.stdout("")
.status(1)
.run();
}
#[test]
fn ignore_unknown_recipe() {
Test::new()
.args(["--allow-missing", "execute"])
.justfile(
"
build:
echo \"Building...\"
",
)
.stderr("")
.stdout("")
.status(0)
.run();
}