Skip to content
Myr

Add simple integation test for --shell=none

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 e38ac46 · Browse files · 1 file+13 added−1 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+13 added−1 removed

  • tests:+13 added−1 removed

1 file+13 added−1 removed

modified:tests/integration_tests.rs+13 added-1 removed
8 unmodified lines
9 cmd10}1112#[test]13fn hyperfine_runs_successfully() {13fn runs_successfully() {14 hyperfine()15 .arg("--runs=2")16 .arg("echo dummy benchmark")17 .assert()
9 unmodified lines
27 .success();28}2930#[test]31fn can_run_commands_without_a_shell() {32 hyperfine()33 .arg("--runs=1")34 .arg("--show-output")35 .arg("--shell=none")36 .arg("echo 'hello world' argument2")37 .assert()38 .success()39 .stdout(predicate::str::contains("hello world argument2"));40}4142#[test]43fn fails_with_wrong_number_of_command_name_arguments() {44 hyperfine()45 .arg("--command-name=a")46 .arg("--command-name=b")
261 unmodified lines