Skip to content

Test framework

Alan B. Christie edited this page Aug 15, 2025 · 9 revisions

The engine is "Event Driven", so to test it we simply have to send events (Protocol Buffer messages) to its handle_message() method. But, as a key element of the engine is the manipulation of database records, and the asynchronous launch of Jobs it need to run in a multiprocessing way and rely on the correct behaviour of an InstanceLauncher and Workflow API Adapter. Leading to a test framework that is a challenging environment to construct.

See also

  1. The "Unit testing the WorkflowEngine" section of the Shortcut doc Workflow engine design
Clone this wiki locally