Function cucumber::create_config [] [src]

pub fn create_config<'a, W: Send + 'static>(world: W) -> CucumberConfig<'a, W>

Configure the Cucumber server and 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::create_config(world)
            .address("0.0.0.0:12345")
            .registrar_fn(&button_steps::register_steps)
            .registrar_fn(&widget_steps::register_steps)
            .args(&["--format", "pretty", "--expand"])
            .start();
}