cargo/tests/testsuite/cargo_search/help/mod.rs
Ed Page 5101372312 test(cli): Track --help output
This makes it easier to evaluate the usability of PRs, like #11905
2023-07-24 17:12:20 -05:00

13 lines
343 B
Rust

use cargo_test_support::curr_dir;
use cargo_test_support::prelude::*;
#[cargo_test]
fn case() {
snapbox::cmd::Command::cargo_ui()
.arg("search")
.arg("--help")
.assert()
.success()
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
}