-
Notifications
You must be signed in to change notification settings - Fork 8
/
run_tests.rs
26 lines (24 loc) · 1.4 KB
/
run_tests.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
extern crate polish;
use polish::test_case::{TestRunner, TestCaseStatus, TestCase};
use polish::logger::Logger;
fn main() {
let my_tests = vec![TestCase::new("1st Test Case Title",
"1st Test Case Criteria",
Box::new(|_: &mut Logger| -> TestCaseStatus {
// TODO: Your test case goes here
TestCaseStatus::PASSED
})),
TestCase::new("2nd Test Case Title",
"2nd Test Case Criteria",
Box::new(|_: &mut Logger| -> TestCaseStatus {
// TODO: Your test case goes here
TestCaseStatus::UNKNOWN
})),
TestCase::new("3rd Test Case Title",
"3rd Test Case Criteria",
Box::new(|_: &mut Logger| -> TestCaseStatus {
// TODO: Your test case goes here
TestCaseStatus::FAILED
}))];
TestRunner::new().run_tests(my_tests);
}