Docs/CLI Commands

run

assrt run executes one or more tests and reports the results. It accepts file paths, glob patterns, or tag filters, and exits non-zero when any test fails.

Usage

bash
assrt run [targets...] [options]

Examples

bash
# single file
assrt run tests/login.yaml

# glob
assrt run "tests/billing/**/*.yaml"

# filter by tag
assrt run --tag smoke

# headed for debugging
assrt run tests/login.yaml --headed --slow-mo 200

# kick off in the cloud, stream results back
assrt run tests/login.yaml --cloud

Options

FieldTypeDescription
--tag <tag>stringOnly run tests carrying this tag. Repeatable.
--headedbooleanShow the browser window. Useful when debugging locally.
--slow-mo <ms>numberInject a delay between actions to make runs easier to follow.
--workers <n>numberHow many tests to run in parallel. Defaults to CPU count.
--var name=valuestringOverride a variable for this run. Repeatable.
--cloudbooleanRun on Assrt Cloud and stream results to the terminal.
--reporter <name>stringOverride the configured reporter (cli, junit, html, json).