hyperfine/tests/integration_tests.rs

21 lines
352 B
Rust
Raw Normal View History

mod common;
use common::hyperfine;
2021-08-23 22:48:31 +03:00
#[test]
fn hyperfine_runs_successfully() {
hyperfine()
.arg("--runs=2")
2021-08-23 23:00:33 +03:00
.arg("echo dummy benchmark")
2021-08-23 22:48:31 +03:00
.assert()
.success();
}
#[test]
fn one_run_is_supported() {
2021-08-23 22:48:31 +03:00
hyperfine()
.arg("--runs=1")
2021-08-23 23:00:33 +03:00
.arg("echo dummy benchmark")
2021-08-23 22:48:31 +03:00
.assert()
.success();
2021-08-23 22:48:31 +03:00
}