mirror of
https://github.com/casey/just.git
synced 2024-11-26 00:24:22 +03:00
34 lines
523 B
Rust
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();
|
|
}
|