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.comTop-level fields
| Field | Type | Description |
|---|---|---|
project | string | Project identifier, used in reports and cloud runs. |
testsDir | string | Directory to discover tests from. Defaults to ./tests. |
browser | BrowserConfig | Default browser, headless mode, viewport, and device emulation. |
defaults | TestDefaults | Default timeout and retry values for tests that do not set their own. |
reporter | ReporterConfig | Output formats and directory for reports and traces. |
env | Record<string, string> | Environment values injected into tests as {{ env.NAME }}. |