kukumba

Crates.iokukumba
lib.rskukumba
version0.1.0
sourcesrc
created_at2021-02-04 13:24:39.924166
updated_at2021-02-04 13:24:39.924166
descriptionBDD helper. Makes test cases more readable
homepagehttps://github.com/hackbg/kukumba
repositoryhttps://github.com/hackbg/kukumba
max_upload_size
id350507
size3,103
(egasimus)

documentation

README

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]
  // ...
)
Commit count: 14

cargo fmt