mirror of
https://github.com/rust-lang/cargo
synced 2024-10-14 03:32:39 +00:00
77da514529
We don't want to overly match to suggestion help from clap.
20 lines
542 B
Rust
20 lines
542 B
Rust
use cargo_test_support::curr_dir;
|
|
use cargo_test_support::CargoCommand;
|
|
use cargo_test_support::Project;
|
|
|
|
#[cargo_test]
|
|
fn case() {
|
|
let project = Project::from_template(curr_dir!().join("in"));
|
|
let project_root = project.root();
|
|
let cwd = &project_root;
|
|
|
|
snapbox::cmd::Command::cargo_ui()
|
|
.arg("bench")
|
|
.arg("--keep-going")
|
|
.current_dir(cwd)
|
|
.assert()
|
|
.code(1)
|
|
.stdout_matches_path(curr_dir!().join("stdout.log"))
|
|
.stderr_matches_path(curr_dir!().join("stderr.log"));
|
|
}
|