Crates.io | kukumba |
lib.rs | kukumba |
version | 0.1.0 |
source | src |
created_at | 2021-02-04 13:24:39.924166 |
updated_at | 2021-02-04 13:24:39.924166 |
description | BDD helper. Makes test cases more readable |
homepage | https://github.com/hackbg/kukumba |
repository | https://github.com/hackbg/kukumba |
max_upload_size | |
id | 350507 |
size | 3,103 |
BDD helpa. Makes test cases more readable.
TODO
output just the spec
#[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]
// ...
)