Reference
Commands
| Command | What it does |
|---|---|
trq list | List the tests in the current folder. |
trq show <name> | Print the recorded steps of a test. |
trq play <name> | Replay one test. |
trq play --sequential | Replay every test in the folder, one at a time. |
trq play --parallel | Replay the folder across several workers at once. |
trq play --suite <name> | Replay a saved suite's tests. |
trq --version | Print the CLI version. |
trq help | Show usage. |
play flags
| Flag | Meaning |
|---|---|
--headed | Show a real browser window (web). Default is headless. |
--sequential | Run a folder's tests one at a time. |
--parallel | Run a folder's tests concurrently. |
--workers <n> | Cap the number of parallel workers. |
--suite <name> | Run a named suite. |
--env <name> | Run against an environment's {{env.*}} values. |
--to <n> | Stop after step n. |
--slow | Replay at a human pace. |
--reporter <junit|json> | Write a machine-readable report. |
--out <file> | Where to write the report (else standard output). |
--cdp-url <url> | Attach to a Chrome you already started, instead of downloading one. |
Environment variables
| Variable | Effect |
|---|---|
TRQ_CHROMIUM_BIN | Path to a Chromium/Chrome binary to use instead of the downloaded one. |
TRQ_CDP_URL | Attach to an already-running Chrome (same as --cdp-url). |
TRQ_BROWSERS_PATH | Where to cache the downloaded browser (default ~/.cache/trq). |
TRQ_CHROMIUM_VERSION | Pin a specific Chrome-for-Testing version to download. |
TRQ_SERIAL | Which Android device/emulator serial to drive. |
TRQ_ADB | Path to an adb binary (else found on PATH). |
TRQ_SESSIONS_DIR | Look for tests in this folder instead of the current directory. |
Exit codes
| Code | Meaning |
|---|---|
0 | All tests passed. |
1 | At least one test failed. |