added

Run mabl tests from the CLI

📘

CLI Setup

See the CLI overview for general setup and auth instructions

Now you can run mabl tests directly from the CLI. This makes it easier to integrate mabl tests with your CI and developer workflows. You can also start testing changes or debugging specific failures directly from your command line. Just like in the app, you can run these tests against arbitrary browsers and URLs.

You will need:

  1. Your workspace ID (ends in -w; find it in the app under Settings > Workspace)
  2. The test ID you want to run (ends in -j; find it in the URL of the Tests detail page)
  3. The target URL to run the test against
$ mabl tests run <id>

run a test via the mabl API

Positionals:
  id, id of the test to run  [string] [required]

Options:
  --version            Show version number  [boolean]
  -h, --help           Show help  [boolean]
  -d, --deployment-id  Deployment to run the mabl tests against  [string]
  -u, --url            URL to run the mabl test against  [string]
  -w, --workspace-id   Workspace id  [string] [required]
  -b, --browsers       List of browsers to test against (internet_explorer, safari, chrome, firefox)  [array] [required]
  -k, --api-key        API key (found in the mabl web app)  [string]
  --rev, --revision    code revision hash (application under test)  [string]
$ mabl config set workspace oJrQSBBvNUJQ4MS5azH6dy-w
$ mabl tests run ab2ngi9hlP73ZiAyD32ZEw-j --browsers chrome --url http://foo.io

Running Test ab2ngi9hlP73ZiAyD32ZEw-j
Test run started.
View output at: https://app.mabl.com/workspaces/oJrQSBBvNUJQ4MS5azH6dy-w/test/journey-runs/nLrQSBBvNUJQ4MS5azH6dQ-jr

Click the link in the output to view the results in the mabl app.

3838