describe_suite!() { /* proc-macro */ }Expand description
Describe a test suite with before/after hooks.
This is a function-like macro alternative to the BDD module.
§Example
ⓘ
describe_suite! {
name: "Button Widget",
before: || { setup(); },
after: || { teardown(); },
tests: {
it "renders with label" => {
// Test code
},
it "handles click" => {
// Test code
}
}
}