Skip to content

hackbg/kukumba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kukumba

BDD helpa. Makes test cases more readable.

TODO output just the spec

Usage

#[macro_use] extern crate kukumba;

kukumba!(
  #[scenario_01]

  given "something"
  and "nothing else" {
    let something = "cucumba";
  }

  when "something happens" {
    let slice = &cucumba[3..];
  }
  and "nothing else happens" {
    // ...
  }

  then "only that should've happened" {
    assert_eq!(slice, &"umba");
  }
  and "everything should be okay"
  and "everyone should be happy" {
    assert_eq!(something, "cucumba");
  }

  #[scenario_02]
  // ...
)

About

Helper macro for concise BDD in Rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages