A workflow definition needs automated testing before deployment. The testing pipeline loads the workflow, executes it with known test inputs, asserts that each task produced expected outputs, and generates a pass/fail report with detailed diffs for failures.
[wft_setup]
|
v
[wft_execute]
|
v
[wft_assert]
|
v
[wft_teardown]
|
v
[wft_report]
Workflow inputs: testSuite, workflowUnderTest, expectedOutput
AssertWorker (task: wft_assert)
Checks assertions against expected output.
- Filters with predicates
- Reads
actualOutput,expectedOutput. Writesassertions,allPassed
ExecuteWorker (task: wft_execute)
Executes the workflow under test using the provided fixtures. Processes the testData from the fixtures and produces actual output based on the input data rather than hardcoded values.
- Reads
workflowUnderTest,fixtures. WritesactualOutput,executionTimeMs
ReportWorker (task: wft_report)
Generates the test report summarizing the test suite run.
- Filters with predicates
- Reads
testSuite,allPassed,assertions,teardownClean. Writesreport
SetupWorker (task: wft_setup)
Prepares test fixtures for the test suite.
- Reads
testSuite. Writesfixtures
TeardownWorker (task: wft_teardown)
Cleans up test fixtures after test execution.
- Writes
cleanedUp,resourcesReleased
49 tests | Workflow: wft_workflow_testing | Timeout: 60s
See RUNNING.md for setup and usage.