Function rspec::suite [] [src]

pub fn suite<F, T>(name: &'static str, environment: T, body: F) -> Suite<T> where
    F: FnOnce(&mut Context<T>),
    T: Clone + Debug

Creates a test suite from a given root context.

Examples

runner.run(&rspec::suite("a test suite", (), |_ctx| {
    // …
}));

Corresponding console output:

tests
Suite "a test suite":
    …

Available aliases: