mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-26 20:30:28 +00:00
44 lines
821 B
Rust
44 lines
821 B
Rust
#[test]
|
|
fn fails_with_no_arguments() {
|
|
assert_cmd::Command::cargo_bin("espup")
|
|
.unwrap()
|
|
.assert()
|
|
.failure();
|
|
}
|
|
|
|
#[test]
|
|
fn verify_help() {
|
|
assert_cmd::Command::cargo_bin("espup")
|
|
.unwrap()
|
|
.arg("--help")
|
|
.assert()
|
|
.success();
|
|
}
|
|
|
|
#[test]
|
|
fn verify_install_help() {
|
|
assert_cmd::Command::cargo_bin("espup")
|
|
.unwrap()
|
|
.args(["install", "--help"])
|
|
.assert()
|
|
.success();
|
|
}
|
|
|
|
#[test]
|
|
fn verify_update_help() {
|
|
assert_cmd::Command::cargo_bin("espup")
|
|
.unwrap()
|
|
.args(["update", "--help"])
|
|
.assert()
|
|
.success();
|
|
}
|
|
|
|
#[test]
|
|
fn verify_uninstall_help() {
|
|
assert_cmd::Command::cargo_bin("espup")
|
|
.unwrap()
|
|
.args(["uninstall", "--help"])
|
|
.assert()
|
|
.success();
|
|
}
|