tests: ensure min number of system/idempotent tests ran (#3629)

This commit is contained in:
Caleb Cartwright 2019-06-16 09:47:22 -05:00 committed by Seiichi Uchida
parent aa0c9dd212
commit 944fc57e10

View File

@ -172,6 +172,11 @@ fn system_tests() {
// Display results.
println!("Ran {} system tests.", count);
assert_eq!(fails, 0, "{} system tests failed", fails);
assert!(
count >= 300,
"Expected a minimum of {} system tests to be executed",
300
)
});
}
@ -292,6 +297,11 @@ fn idempotence_tests() {
// Display results.
println!("Ran {} idempotent tests.", count);
assert_eq!(fails, 0, "{} idempotent tests failed", fails);
assert!(
count >= 400,
"Expected a minimum of {} idempotent tests to be executed",
400
)
});
}