bdd-sugar

Crates.iobdd-sugar
lib.rsbdd-sugar
version0.1.0
sourcesrc
created_at2022-12-02 20:55:50.195012
updated_at2022-12-02 20:55:50.195012
descriptionBehaviour-driven development syntactic sugar to make tests more readable
homepage
repositoryhttps://github.com/Ghamza-Jd/bdd-sugar
max_upload_size
id728616
size3,079
Hamza Jadid (Ghamza-Jd)

documentation

README

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
}
Commit count: 1

cargo fmt