Skip to content
Myr

Add regression test for #642

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 9859eca · Browse files · 1 file+21 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+21 added−0 removed

  • tests:+21 added−0 removed

1 file+21 added−0 removed

modified:tests/integration_tests.rs+21 added
359 unmodified lines
360 (predicate::str::contains("sleep 1").count(1))361 .and(predicate::str::contains("sleep 2").count(1)),362 );363}364365#[test]366#[cfg(unix)]367fn exports_intermediate_results_to_file() {368 use tempfile::tempdir;369370 let tempdir = tempdir().unwrap();371 let export_path = tempdir.path().join("results.md");372373 hyperfine()374 .arg("--runs=1")375 .arg("--export-markdown")376 .arg(&export_path)377 .arg("true")378 .arg("false")379 .assert()380 .failure();381382 let contents = std::fs::read_to_string(export_path).unwrap();383 assert!(contents.contains("true"));384}