Expand description
Runs a suite’s stories as acceptance tests against the system under test, and writes the documentation from what happened.
ⓘ
let acceptance = Acceptance::load("expectations")?.with_coverage();
let mut driver = Bindings::new(world).observe(...).set(...).on(...);
acceptance.assert_passes(&mut driver, &RunOptions { docs_dir: Some("docs/behaviour".into()), ..Default::default() });The system under test plugs in through Driver, or Bindings for closures.
Re-exports§
pub use bindings::Bindings;pub use driver::Driver;pub use driver::Need;pub use driver::Progress;pub use driver::Screenshot;pub use run::RunOptions;pub use run::run;pub use expectation_service as service;
Modules§
- bindings
- A
Drivermade of closures over the system under test, one per vocabulary term: - driver
- The system under test, as the runner sees it.
- run
- Running plans against a driver.
Structs§
- Acceptance
- A suite that has been checked and planned, ready to run.