Skip to main content

behave

Macro behave 

Source
behave!() { /* proc-macro */ }
Expand description

Defines BDD-style test suites using a zero-keyword DSL.

§Examples

use behave::prelude::*;

behave! {
    "addition" {
        "adds two numbers" {
            expect!(1 + 1).to_equal(&2)?;
        }
    }
}