Skip to content
Myr

Add integration test for prepare option

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 b3c0022 · Browse files · 1 file+24 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+24 added−0 removed

  • tests:+24 added−0 removed

1 file+24 added−0 removed

modified:tests/integration_tests.rs+24 added
31 unmodified lines
32 .stderr(predicate::str::contains("Too many --command-name options"));33}3435#[test]36fn fails_with_wrong_number_of_prepare_options() {37 hyperfine()38 .arg("--runs=1")39 .arg("--prepare=echo a")40 .arg("--prepare=echo b")41 .arg("echo a")42 .arg("echo b")43 .assert()44 .success();4546 hyperfine()47 .arg("--prepare=echo a")48 .arg("--prepare=echo b")49 .arg("echo a")50 .arg("echo b")51 .arg("echo c")52 .assert()53 .failure()54 .stderr(predicate::str::contains(55 "The '--prepare' option has to be provided",56 ));57}5859#[test]60fn fails_for_unknown_command() {61 hyperfine()62 .arg("some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577")63 .assert()
24 unmodified lines