Faster tests

This commit is contained in:
David Peter 2022-02-21 20:45:04 +01:00 committed by David Peter
parent c0ce6b9537
commit 3348b37b8e

View File

@ -75,6 +75,7 @@ fn fails_with_duplicate_parameter_names() {
#[test]
fn fails_for_unknown_command() {
hyperfine()
.arg("--runs=1")
.arg("some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577")
.assert()
.failure()
@ -86,6 +87,7 @@ fn fails_for_unknown_command() {
#[test]
fn fails_for_unknown_setup_command() {
hyperfine()
.arg("--runs=1")
.arg("--setup=some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577")
.arg("echo test")
.assert()
@ -98,6 +100,7 @@ fn fails_for_unknown_setup_command() {
#[test]
fn fails_for_unknown_cleanup_command() {
hyperfine()
.arg("--runs=1")
.arg("--cleanup=some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577")
.arg("echo test")
.assert()