Skip to main content

sqb scenario

Run end-to-end scenario tests. Scenarios materialize fixture inputs as physical relations, build the real project graph against them, and evaluate expected outputs and assertions. See Scenarios for concepts and authoring details.

sqb scenario test

Run scenario tests against the warehouse.

Flags

Selectors

Scenarios are selected with --select. --exclude removes scenarios from the selection. Without any selectors, all discovered scenarios run. Mixed selector types are supported and the result is de-duplicated by scenario name.

Remote examples

Local examples

Output

Remote scenarios report per-scenario PASS/FAIL with nested check rows:
Local scenarios add ERROR and SKIP statuses:
Failed scenarios suggest rerunning with --retain for inspection. Local runs always keep the DuckDB file at target/run/scenarios/<scenario_name>/local.duckdb.

sqb scenario capture

Capture scenario input fixtures from the warehouse as JSONL snapshots for local replay.

Flags

Examples

Snapshots are written to tests/_scenario_snapshots/<scenario_name>/ with a scenario.json manifest and JSONL files for each fixture relation. These files can be committed to version control.

Runtime artifacts

Both remote and local scenario runs write runtime artifacts to target/run/scenarios/<scenario_name>/:
Local runs additionally write to a local/ subdirectory and create local.duckdb.