1
1
mirror of https://github.com/casey/just.git synced 2024-11-30 11:17:32 +03:00
just/tests/no_dependencies.rs

50 lines
704 B
Rust
Raw Normal View History

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();
}