shout/tests/shout.rs

17 lines
386 B
Rust

use std::process::Command;
fn shout() -> Command {
let mut cmd = Command::new(env!("CARGO_BIN_EXE_shout"));
cmd.current_dir(concat!(env!("CARGO_MANIFEST_DIR")));
cmd
}
#[test]
fn test_suite_passes() {
let status = shout()
.args(["test", "tests/"])
.status()
.unwrap();
assert!(status.success(), "shout test tests/ exited with {status}");
}