Assert commands that the CLI actually exposes (D-098)
This commit is contained in:
parent
9bbe83015e
commit
6a3b5cb047
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ fn public_help_version_and_usage_exit_contract() {
|
|||
let help = Command::new(binary).arg("--help").env("LC_ALL", "C").output().unwrap();
|
||||
assert!(help.status.success());
|
||||
let text = String::from_utf8(help.stdout).unwrap();
|
||||
for command in ["update", "extension", "kargs", "overlay"] { assert!(text.contains(command), "{command}"); }
|
||||
for command in ["status", "update", "extension", "kargs", "build", "install"] { assert!(text.contains(command), "{command}"); }
|
||||
let version = Command::new(binary).arg("--version").output().unwrap();
|
||||
assert!(version.status.success());
|
||||
assert!(String::from_utf8(version.stdout).unwrap().starts_with("archipelago "));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue