Workflow testing helpers built on the real Temporalex executor.
These helpers run workflow code without a Temporal server. Tests observe Temporal-visible commands, consume them in deterministic emission order, and decide when durable operations complete.
Summary
Functions
Asserts that the workflow cancelled.
Asserts that the workflow completed successfully.
Asserts that the workflow continued as new and returns the command.
Asserts that the workflow failed.
Consumes and returns the next scheduled activity command.
Consumes and returns the next raw core command.
Consumes and returns the next started timer command.
Asserts that the next command accepts the given update.
Asserts that the next command completes the given update.
Asserts that the next command rejects the given update.
Asserts that the current activation has no unconsumed commands.
Runs a query activation and asserts its successful result.
Replays the recorded activation transcript and asserts deterministic command emission.
Resolves a scheduled activity as cancelled.
Delivers workflow cancellation.
Resolves a scheduled activity handle with a workflow-visible result.
Resolves a scheduled activity as failed.
Fires a started timer handle.
Runs a query activation and returns the query result.
Asserts that the workflow has not completed successfully.
Delivers a signal to the workflow run.
Returns a debugging snapshot of the testing runner.
Starts a workflow run in the testing runner.
Delivers an update to the workflow run and returns an update handle.
Functions
Asserts that the workflow cancelled.
Asserts that the workflow completed successfully.
Asserts that the workflow continued as new and returns the command.
Asserts that the workflow failed.
Consumes and returns the next scheduled activity command.
Consumes and returns the next raw core command.
expected may be omitted, a command module, a full struct, or a one-argument
predicate function.
Consumes and returns the next started timer command.
Asserts that the next command accepts the given update.
Asserts that the next command completes the given update.
Asserts that the next command rejects the given update.
Asserts that the current activation has no unconsumed commands.
Runs a query activation and asserts its successful result.
Replays the recorded activation transcript and asserts deterministic command emission.
Resolves a scheduled activity as cancelled.
Delivers workflow cancellation.
Resolves a scheduled activity handle with a workflow-visible result.
Resolves a scheduled activity as failed.
Fires a started timer handle.
Runs a query activation and returns the query result.
Asserts that the workflow has not completed successfully.
Delivers a signal to the workflow run.
Returns a debugging snapshot of the testing runner.
Starts a workflow run in the testing runner.
The workflow is initialized immediately. Any commands emitted by the first
activation are available through assert_next_activity/2,
assert_next_timer/2, or assert_next_command/2.
Delivers an update to the workflow run and returns an update handle.