Skip to content

Commit

Permalink
tests: ensure min number of system/idempotent tests ran (rust-lang#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright authored and topecongiro committed Jun 16, 2019
1 parent aa0c9dd commit 944fc57
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
});
}

Expand Down Expand Up @@ -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
)
});
}

Expand Down

0 comments on commit 944fc57

Please sign in to comment.