rsspec — A Ginkgo/RSpec-inspired BDD testing framework for Rust
Write expressive, structured tests using a familiar BDD syntax with
describe, context, it, lifecycle hooks, table-driven tests, and more.
Three ways to run tests
- [
suite!] — generates#[test]functions, works withcargo test - [
bdd!] — generates amain()with colored tree output (harness = false) - [
bdd_suite!] — returns test nodes for combining multiple suites
Quick example
suite!
Features
macros(default) — enablessuite!,bdd!,bdd_suite!macrosgoogletest— re-exportsgoogletestmatchers viarsspec::matchers
See the [suite!] macro documentation for the full DSL reference.