Add integration test for --show-output

This commit is contained in:
David Peter 2022-02-22 11:57:05 +01:00 committed by David Peter
parent 9b8f2a9ee2
commit d27cbceed2

View File

@ -147,6 +147,18 @@ fn can_run_failing_commands_with_ignore_failure_option() {
.success();
}
#[test]
fn shows_output_of_benchmarked_command() {
hyperfine()
.arg("--runs=2")
.arg("--command-name=dummy")
.arg("--show-output")
.arg("echo 4fd47015")
.assert()
.success()
.stdout(predicate::str::contains("4fd47015").count(2));
}
#[test]
fn runs_commands_using_user_defined_shell() {
hyperfine()