mirror of
https://github.com/casey/just.git
synced 2024-11-27 17:22:15 +03:00
21 lines
392 B
Rust
21 lines
392 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn examples() {
|
|
for result in fs::read_dir("examples").unwrap() {
|
|
let entry = result.unwrap();
|
|
let path = entry.path();
|
|
|
|
println!("Parsing `{}`…", path.display());
|
|
|
|
let output = Command::new(executable_path("just"))
|
|
.arg("--justfile")
|
|
.arg(&path)
|
|
.arg("--dump")
|
|
.output()
|
|
.unwrap();
|
|
|
|
assert_success(&output);
|
|
}
|
|
}
|