Skip to main content
Both the momentic and momentic-mobile CLIs run tests locally without uploading results anywhere unless you explicitly opt in.

Basic usage

npx momentic run example-test
Run all tests matching a glob by omitting the test name:
npx momentic run

Selecting tests

  • By name, npx momentic run login-flow
  • By file, npx momentic run tests/auth/login.test.yaml
  • By label: add labels: in a test’s YAML, then npx momentic run --labels smoke
Use npx momentic list to preview which tests match a pattern before running.

Parallelism

Set parallel in momentic.config.yaml to run multiple tests concurrently. The default is 1.
momentic.config.yaml
parallel: 4
Override per-run:
npx momentic run --parallel 4
See Performance for tuning guidance.

Picking an environment

Define environments in your config (e.g., dev, staging, local), then pick one at run time:
npx momentic run --env staging

Watching for changes

During development, the local editor gives a tighter feedback loop than run. Use run when you want reproducible pipeline-style execution.

Uploading to the dashboard

By default local runs stay local. To upload results, pass --upload-results (or the matching flag for your CLI), see Results & reporting.