Skip to content
Myr

Add new integration test

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

  • tests:+13 added−0 removed

1 file+13 added−0 removed

modified:tests/integration_tests.rs+13 added
1mod common;2use common::hyperfine;34use predicates::prelude::*;56#[test]7fn hyperfine_runs_successfully() {8 hyperfine()9 .arg("--runs=2")
9 unmodified lines
19 .arg("echo dummy benchmark")20 .assert()21 .success();22}2324#[test]25fn fails_with_wrong_number_of_command_name_arguments() {26 hyperfine()27 .arg("--command-name=a")28 .arg("--command-name=b")29 .arg("echo a")30 .assert()31 .failure()32 .stderr(predicate::str::contains("Too many --command-name options"));33}