Skip to main content

drt test

Run post-sync validation tests.

With --dry-run, shows what tests would be executed without actually connecting to the destination or running queries. With --unit, runs sync.unit_tests instead — see that flag's help.

Examples:

drt test --select state:modified --state ci-baseline/manifest.json --dry-run

Usage​

drt test [OPTIONS]

Options​

OptionTypeDefaultDescription
--output, -oTEXTtextOutput format: text or json.
--select, -sTEXTSelect syncs: name or glob, tag:<pattern>, destination:<type>, state:modified/state:new, or "*" / "all". Repeat to union.
--excludeTEXTSubtract syncs from the selection (same grammar as --select). Repeatable.
--statePATHBaseline manifest path for state:modified/state:new selectors (for example, a prior drt docs generate --format json CI artifact).
--dry-runBOOLEANPreview without running tests.
--fail-fastBOOLEANStop after the first sync with a failing test; remaining syncs are skipped.
--store-failuresBOOLEANWrite up to N failing rows per failed test to .drt/test_failures/<sync>/<test>.jsonl (sync.mask applied before write; N set by --store-failures-limit).
--store-failures-limitINTEGER RANGE10Max rows written per failed test when --store-failures is set.
--unitBOOLEANRun sync.unit_tests instead of sync.tests: fixture rows through the transform pipeline, zero credentials, zero network. Mutually exclusive with --dry-run and --store-failures, which are destination-connected concepts unit tests don't have.