Function cucumber::start
[−]
[src]
pub fn start<W: Send + 'static>(world: W, register_fns: &[&Fn(&mut CucumberRegistrar<W>)])
Starts a Cucumber server and the Ruby client
Example
#[macro_use] extern crate cucumber; mod button_steps { use cucumber::CucumberRegistrar; pub fn register_steps(c: &mut CucumberRegistrar<u32>) { } } mod widget_steps { use cucumber::CucumberRegistrar; pub fn register_steps(c: &mut CucumberRegistrar<u32>) { } } fn main() { let world: u32 = 0; cucumber::start( world, &[ &button_steps::register_steps, &widget_steps::register_steps, ] ); }