Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 784 Bytes

File metadata and controls

19 lines (15 loc) · 784 Bytes

Workflow testing

WorkflowExecutor.testWorkflow() evaluates a workflow definition against Conductor's POST /api/workflow/test endpoint with controlled, mocked task outputs — no live workers required. Cover successful paths, retryable and terminal failures, branching, timeouts, and workflow outputs.

npx ts-node examples/test-workflows.ts

Expected result: the script prints the simulated workflow's status and output for each scenario without executing any real worker code. Do not run examples with production credentials unless their external side effects have been reviewed.

See test-workflows.ts for the runnable example and workflow-executor.md for testWorkflow()'s full signature.