Skip to content

spawn test run

Usage

spawn test run <name>

Executes one or all tests against the configured database and displays the results.

  • <name> — Specific test to run.

Runs the SQL for the test against the database, showing the output from that test.

test run always masks secret() values, even though it executes the rendered SQL against the database, so secrets cannot leak through test output. See the Secrets guide for details.

Run a specific test:

Terminal window
spawn test run user-creation

Options

Option Description
-e, --environment <name> Override the environment for the target config.
--target <name> Select which target from spawn.toml to use.
--config-file <path> Path to config file. Defaults to spawn.toml.
-d, --debug Turn on debug output.