# Testing workflows

The platform ships stand-ins so a workflow's own tests run without Cloudflare, Composio or a model. Import them from `xenise-platform/testing`:

- `memoryEngine`: an in-memory Workflows engine. It does not simulate Cloudflare's replay or retry.
- `sqliteSql`: the client's D1 database as in-memory SQLite (`node:sqlite`, Node 22 or newer).
- `fakeExecutor`: answers `tools.call` from handlers you give it, keyed by tool.
- `fakeModel`: answers a workflow's model and agent steps.
- `memoryWaker` (wakes a run when a question is answered) and `throughOutbound` (a `fetch` that goes through the outbound Worker's rules).

[xenise-workflows](https://github.com/bfish1502/xenise-workflows) uses these for its own tests. `xenise check` also runs every example in a workflow's explanation through its code (see [Writing a workflow](/docs/building/writing-a-workflow/)).
