spawn test run
Usage
spawn test run <name> Executes one or all tests against the configured database and displays the results.
Arguments
Section titled “Arguments”<name>— Specific test to run.
Behavior
Section titled “Behavior”Runs the SQL for the test against the database and shows what it produced — query output first, then any messages. This is the same thing spawn test expect saves and spawn test compare checks against.
Secrets
Section titled “Secrets”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.
Examples
Section titled “Examples”Run a specific test:
spawn test run user-creationOptions
| 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. |