spawn test new
Usage
spawn test new <name> Creates a new test directory with a template test.sql file.
Arguments
Section titled “Arguments”<name>— A descriptive name for the test
Behavior
Section titled “Behavior”Creates a directory at tests/<name>/ with a test.sql template for writing SQL test scenarios.
To use your own starting content instead of the default template, set template_test in spawn.toml to a path (relative to spawn_folder) of a file to copy into test.sql.
Example
Section titled “Example”spawn test new 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. |