Skip to main content

Module scenario

Module scenario 

Source
Expand description

§35.12: scenario runner — executable protocol tests inside .aclp.

A scenario drives projected runtimes exactly like the wire would: buyer sends request to seller delivers into seller’s runtime; the outs queue up; expect seller sends propose pops the queue. Because the runtime is deterministic, scenarios are real tests, not mocks.

Functions§

run
run one scenario; returns the trace on success, errors on failure.
run_all
run ALL scenarios in a program; returns (passed, failed) names.