Declarative machine tests, on the interface so bases can use them.
Declarative machine tests, on the interface so bases can use them.
Declarative machine test: per state and event, the target and the trace of actions/invokes. Expectations: {from-state {event expected-result ...} ...} expected-result: keyword/vector (target only) or {:target ... :trace [...] :ctx ... :event-params ...}. Actions are not run but traced by name; invokes are not run but traced by id and answered from :invoke-returns. opts may include :state-key (default :_state), :ctx merged into the transition context, and :invoke-returns {invoke-id value | ex-info} (unlisted ids get {}). Returns :ok or a vector of failure maps.
Declarative machine test: per state and event, the target and the trace of actions/invokes.
Expectations: {from-state {event expected-result ...} ...}
expected-result: keyword/vector (target only) or {:target ... :trace [...] :ctx ... :event-params ...}.
Actions are not run but traced by name; invokes are not run but traced by id
and answered from :invoke-returns. opts may include :state-key (default
:_state), :ctx merged into the transition context, and :invoke-returns
{invoke-id value | ex-info} (unlisted ids get {}).
Returns :ok or a vector of failure maps.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |