spawn test expect
Usage
spawn test expect <name> Runs a test and saves its output as the new expected result for future comparisons.
Arguments
Section titled “Arguments”<name>— The test directory name
Behavior
Section titled “Behavior”- Runs the specified test
- Captures the output
- Writes it to
tests/<name>/expected.txt
Use this command when test behavior changes intentionally and you want to update the baseline for spawn test compare.
Example
Section titled “Example”spawn test expect user-creationOptions
| 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. |