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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#![doc(html_root_url = "https://mackwic.github.io/rspec")] #![cfg_attr(feature="clippy", feature(plugin))] #![cfg_attr(feature="clippy", plugin(clippy))] #![allow(dead_code)] #[macro_use(expect)] extern crate expectest; pub use expectest::prelude::*; pub mod events; pub mod context; pub mod runner; pub mod formatter; #[cfg(test)] mod tests { pub use super::*; pub use context::*; // Test list: // x check that tests can call `assert_eq!` // x check that tests can return Err or Ok // x runner can count the tests // x runner can count the success and failures // x check that we can use before in a describe // x check that we can use after in a describe // x check that after/before are run in all child contextes // x runner broadcasts run events // x progress formatter is an event handler // x pluggable formatters via formatter trait // - stats time events is an event handler // - detect slow tests via treshold // - time the total running time // - failure-only via a tmp file // - filter tests // - coloration // - seed for deterministic randomization // - fail-fast fail at the first failed test // x beforeAll // x afterAll // - beforeEach ? // - afterEach ? // - use Any to return anything that can be Ok-ed or () or None or panic-ed // - bench ? --> see what's the protocol // }