Crates.io | bdd-sugar |
lib.rs | bdd-sugar |
version | 0.1.0 |
source | src |
created_at | 2022-12-02 20:55:50.195012 |
updated_at | 2022-12-02 20:55:50.195012 |
description | Behaviour-driven development syntactic sugar to make tests more readable |
homepage | |
repository | https://github.com/Ghamza-Jd/bdd-sugar |
max_upload_size | |
id | 728616 |
size | 3,079 |
Behaviour-driven development syntactic sugar to make tests more readable in rust lang
inside Cargo.toml
add
[dev-dependencies]
bdd-sugar = "0.1.0"
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
}