mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 01:21:25 +00:00
Add integration test for --show-output
This commit is contained in:
1 parent
11921b9391
commit
7a7bcbcc3e
1 file changed
+12
@@ -147,6 +147,18 @@ fn can_run_failing_commands_with_ignore_failure_option() {
|
|||||||
.success();
|
.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]
|
#[test]
|
||||||
fn runs_commands_using_user_defined_shell() {
|
fn runs_commands_using_user_defined_shell() {
|
||||||
hyperfine()
|
hyperfine()
|
||||||
|
|||||||
Reference in new issue
Block a user