Guides
The pattern book.
Seven short guides, one task each. Every sample compiles against rstest-bdd 0.6.0, and each guide ends at the matching section of the full user’s guide.
All guides
Guide 1 of 7
Write feature files
Scenarios, Background, Scenario Outlines, data tables, docstrings, tags, and feature files in other languages.
Guide 2 of 7
Define steps
Step patterns, typed placeholders, and steps that return a value for the next step to use.
Guide 3 of 7
Fixtures and state
Fixtures as the world: &mut access in steps, a fresh fixture per scenario, and what should really be shared.
Guide 4 of 7
Bind and filter scenarios
#[scenario] for one scenario, scenarios! for a directory, tag expressions, and skipping with a reason.
Guide 5 of 7
Async scenarios
Async steps on Tokio's current-thread runtime, and which of the two async forms to reach for.
Guide 6 of 7
Tooling
Strict compile-time validation, cargo bdd, the language server, and JSON and JUnit reports.
Guide 7 of 7
Migrate to 0.6
What changed from 0.5: fixture-name normalization, Result aliases that now fail, the Tokio runtime alias, HarnessResult, and Rust 1.88.
Reference
The full user’s guide
Every feature, organized by the three amigos, in the df12 reference library.