mirror of
https://github.com/casey/just.git
synced 2024-11-30 11:17:32 +03:00
50 lines
704 B
Rust
50 lines
704 B
Rust
|
use super::*;
|
||
|
|
||
|
#[test]
|
||
|
fn skip_normal_dependency() {
|
||
|
Test::new()
|
||
|
.justfile(
|
||
|
"
|
||
|
a:
|
||
|
@echo 'a'
|
||
|
b: a
|
||
|
@echo 'b'
|
||
|
",
|
||
|
)
|
||
|
.args(["--no-deps", "b"])
|
||
|
.stdout("b\n")
|
||
|
.run();
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn skip_prior_dependency() {
|
||
|
Test::new()
|
||
|
.justfile(
|
||
|
"
|
||
|
a:
|
||
|
@echo 'a'
|
||
|
b: && a
|
||
|
@echo 'b'
|
||
|
",
|
||
|
)
|
||
|
.args(["--no-deps", "b"])
|
||
|
.stdout("b\n")
|
||
|
.run();
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn skip_dependency_multi() {
|
||
|
Test::new()
|
||
|
.justfile(
|
||
|
"
|
||
|
a:
|
||
|
@echo 'a'
|
||
|
b: && a
|
||
|
@echo 'b'
|
||
|
",
|
||
|
)
|
||
|
.args(["--no-deps", "b", "a"])
|
||
|
.stdout("b\na\n")
|
||
|
.run();
|
||
|
}
|