Bulk user creation (Rust)
Generated output
Section titled “Generated output”### ✅ Bulk user creation
- **Given** the following users exist **Users** | email | role | status | | ----------------- | ----- | ------ | | [email protected] | admin | active | | [email protected] | user | active | | [email protected] | user | locked |- **When** the admin opens the user list- **Then** the user list should include **Expected** | email | role | status | | ----------------- | ----- | ------ | | [email protected] | admin | active | | [email protected] | user | active | | [email protected] | user | locked |Rust code
Section titled “Rust code”use executable_stories::Story;
#[test]fn test_bulk_user_creation() { let mut s = Story::new("Bulk user creation"); s.given("the following users exist"); s.table("Users", &["email", "role", "status"], &[ ], ); s.when("the admin opens the user list"); s.then("the user list should include"); s.table("Expected", &["email", "role", "status"], &[ ], ); s.pass();}