Skip to content

spawn test new

Usage

spawn test new <name>

Creates a new test directory with a template test.sql file.

  • <name> — A descriptive name for the test

Creates a directory at tests/<name>/ with a test.sql template for writing SQL test scenarios.

tests/user-creation/test.sql
spawn test new user-creation

Options

Option Description
--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.