#sugar #readable #syntactic #bdd #behaviour-driven

bdd-sugar

Behaviour-driven development syntactic sugar to make tests more readable

1 unstable release

0.1.0 Dec 2, 2022

#693 in Testing

MIT license

3KB

BDD Sugar

Behaviour-driven development syntactic sugar to make tests more readable in rust lang

Installation

inside Cargo.toml add

[dev-dependencies]
bdd-sugar = "0.1.0"

Example usage

use bdd_sugar::{given, when, then};

#[test]
#[given(valid email address)]
#[when(filled and pressed forgot password)]
#[then(success toast appears)]
fn forget_password_happy_path_test() {
    // test code
}

No runtime deps