bdd!() { /* proc-macro */ }Expand description
BDD test runner macro — generates a main() function with colored tree output.
Use this instead of suite! when your test target has harness = false.
§Setup
In Cargo.toml:
[[test]]
name = "my_bdd_tests"
harness = falseIn your test file:
rsspec::bdd! {
describe "Calculator" {
it "adds" { assert_eq!(2 + 3, 5); }
}
}Run with:
cargo test --test my_bdd_tests