Docs/CLI

Configuring momentic.config.yaml

The CLI reads assrt.config.yaml from the root of your project on every run. It is the place to set defaults for browsers, reporters, timeouts, and credentials so individual test files stay short.

Example

assrt.config.yamlyaml
project: checkout-web
testsDir: ./tests

browser:
  name: chromium
  headless: true
  viewport: { width: 1440, height: 900 }

defaults:
  timeout: 30s
  retries: 1

reporter:
  format: [cli, junit]
  output: ./assrt-results

env:
  BASE_URL: https://staging.example.com

Top-level fields

FieldTypeDescription
projectstringProject identifier, used in reports and cloud runs.
testsDirstringDirectory to discover tests from. Defaults to ./tests.
browserBrowserConfigDefault browser, headless mode, viewport, and device emulation.
defaultsTestDefaultsDefault timeout and retry values for tests that do not set their own.
reporterReporterConfigOutput formats and directory for reports and traces.
envRecord<string, string>Environment values injected into tests as {{ env.NAME }}.