Skip to main content

Documentation Index

Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Deprecated. Cloud-hosted tests are being phased out as part of the broader cloud deprecation. Both queue tests and queue suites remain for backwards compatibility and will be removed in a future release. Run tests locally or in CI with momentic run instead.
Queues dashboard-hosted tests or suites for cloud execution. Requires the tests to exist on Momentic dashboard.
npx momentic queue tests <tests...>

tests

Queue one or more individual tests.
npx momentic queue tests <tests...>

Arguments

<tests...>
array
required
Names of the dashboard tests to queue. Pass multiple values separated by spaces.

Common flags

--all
boolean
Queue every test in the project instead of the paths passed as arguments. Mutually exclusive with the <tests...> argument.
--env <env>
string
Environment to run the tests in. Overrides any environment configured on the test itself. The base URL set on the test still takes precedence, use --url-override to override it.
--url-override <urlOverride>
string
Override the base URL of the test or environment. Useful for running against a preview deployment.

Inputs

--custom-headers <customHeaders...>
array
Custom headers to include in the test run. Specify multiple headers separated by spaces.
--input-csv <inputCsv>
string
CSV file containing input data for the tests. Each row is used as input for a separate test run.

Waiting

-w, --wait
boolean
Wait for the run to complete before exiting.
--wait-timeout <waitTimeout>
number
Maximum time to wait for the run to complete, in seconds. Defaults to 1800. Requires --wait.

suites

Queue one or more dashboard suites.
npx momentic queue suites <suites...>

Arguments

<suites...>
array
required
Names of the suites to queue. Pass multiple values separated by spaces.

Options

--custom-headers <customHeaders...>
array
Custom headers to include in the run.
--env <env>
string
Environment to run the suite in. The base URL on the suite still takes precedence, use --url-override to override.
--url-override <urlOverride>
string
Override the base URL of the suite or environment.
-w, --wait
boolean
Wait for the run to complete before exiting.
--wait-timeout <waitTimeout>
number
Maximum time to wait for the run to complete, in seconds. Defaults to 1800. Requires --wait.

Examples

Queue a single dashboard test and wait for completion:
npx momentic queue tests checkout-happy-path --wait
Queue a suite against a preview deployment:
npx momentic queue suites smoke --url-override https://preview-123.example.com