Skip to content
Myr

common.rs

This file

Path

tests/common.rs

11 lines · 295 bytes · Rust

Last changed by

Use cargo_bin! to locate the integration test binary (#933)David Peterbefore adoption4b561de

History of this file

Take it

1use std::process::Command;23pub fn hyperfine_raw_command() -> Command {4    let mut cmd = Command::new(assert_cmd::cargo::cargo_bin!("hyperfine"));5    cmd.current_dir("tests/");6    cmd7}89pub fn hyperfine() -> assert_cmd::Command {10    assert_cmd::Command::from_std(hyperfine_raw_command())11}