Skip to content

Commit

Permalink
Add regression test for #640
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp authored and David Peter committed Apr 20, 2023
1 parent 24f079c commit 8e49f08
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,19 @@ fn performs_all_benchmarks_in_parameter_scan() {
.and(predicate::str::contains("Benchmark 5: sleep 50").not()),
);
}

#[test]
fn intermediate_results_are_not_exported_to_stdout() {
hyperfine_debug()
.arg("--style=none") // To only see the Markdown export on stdout
.arg("--export-markdown")
.arg("-")
.arg("sleep 1")
.arg("sleep 2")
.assert()
.success()
.stdout(
(predicate::str::contains("sleep 1").count(1))
.and(predicate::str::contains("sleep 2").count(1)),
);
}

0 comments on commit 8e49f08

Please sign in to comment.