use assert_cmd::Command; use predicate::str::is_match; use predicates::prelude::*; #[test] fn no_arguments() { let mut cmd = Command::cargo_bin("template").unwrap(); let assert = cmd.assert(); assert .failure() .code(2) .stdout("") .stderr(r#"error: the following required arguments were not provided: --template