ReferenceActions
Suite runs
Run Playwright suites on Endform, follow background runs, and stop active runs across the CLI, MCP, and the dashboard.
Suite run actions start Playwright tests on Endform's remote runners, follow progress, and cancel runs early. In the CLI, endform test runs in the foreground and streams progress until completion (Ctrl-C stops the run). On the local MCP server (endform mcp), the same lifecycle splits into suite_run_start, suite_run_status, and suite_run_stop so an agent can start a run in the background and poll it.
Run tests
Run tests
Runs your Playwright suite or a filtered subset of tests in parallel on Endform's remote runners.
$ npx endform@latest test$ npx endform@latest test tests/checkout.spec.ts --project chromium --repeat-each 5 --retries 0Runs in the foreground, streams progress live, and exits with code 0 when the suite passes (quarantined failures do not fail the run). Endform accepts Playwright's filtering and execution flags, except --workers, --headed, --ui, and --list.
TEST_FILE_FILTERSstring[]- Positional regular expressions matched against absolute test file paths. A filter may include a line number, such as
tests/checkout.spec.ts:47. -g, --grepstring[]- Only run tests whose full title matches this regular expression.
-G, --grep-invertstring[]- Skip tests whose full title matches this regular expression.
--projectstring[]- Only run tests from the named Playwright projects.
--repeat-eachnumber- Run each selected test N times. Defaults to 1.
--retriesnumber- Maximum retry count for failed tests. Pass
0for no retries. --max-failures, -xnumber- Stop the suite after N failures (
-xstops after the first failure). --fully-parallelboolean- Run all tests in parallel, overriding the config.
--shufflestring?- Randomize execution order. Pass an optional seed to reproduce an order (place file filters before
--shuffle). --shardstring- Execute only the selected shard in
current/totalform, such as1/3. --forbid-onlyboolean- Fail the run if any test uses
test.only. --no-depsboolean- Skip Playwright project dependencies.
--only-changedstring?- Only run test files changed between
HEADand the given git ref. Omit the ref to match uncommitted changes. --test-liststring- Path to a file listing tests to run.
--test-list-invertstring- Path to a file listing tests to skip.
-u, --update-snapshots"all" | "changed" | "default" | "missing" | "none"- Update snapshots with actual results. Passing
-uwithout a value useschanged. --reporterstring- Comma-separated reporters to use (for example
html,json). Replaces configured reporters. --add-reporterstring- Comma-separated reporters to add on top of your configured reporters (for example
github,junit). --tracestring- Force Playwright tracing mode:
on,off,on-first-retry,on-all-retries,retain-on-failure,retain-on-first-failure, orretain-on-failure-and-retries. --timeoutnumber- Per-test timeout in milliseconds. Pass
0for Endform's 240,000 ms maximum. -c, --configstring- Path to a Playwright config file or test directory containing
playwright.config.{ts,js}. --organization-idstring- Organization ID. Inferred from your repository config or active login when omitted.
Output
Streams live test progress to the terminal, prints the Endform report URL, runs all configured Playwright reporters, and exits with 0 on pass or 1 on failure.
suite_run_startLocal MCP server onlyExample promptRun the checkout test 20 times with retries set to 0 so we can measure whether our fix removed the flake.
Returns immediately once the suite starts while the run continues in the background on your machine. Follow it with suite_run_status and stop it early with suite_run_stop.
directorystringrequired- Absolute path to the directory to run from, as if
endform testwere started there. testFileFiltersstring[]- Regular expressions matched against absolute test file paths. May include a declaration line, such as
tests/checkout.spec.ts:47. grepstring[]- Regular expressions matching the full Playwright title chain.
grepInvertstring[]- Regular expressions excluding tests with matching titles.
projectstring[]- Only run tests from these Playwright projects.
repeatEachnumber- Run each selected test this many times (for example
100withretries: 0to measure flakiness). maxFailuresnumber- Stop after this many failures. Pass
0to remove the limit. retriesnumber- Maximum retries for each failed test. Defaults to the Playwright config.
organizationIdstring- Organization ID. Defaults to the organization configured for the repository or active login.
configstring- Playwright config file or test directory. Relative paths resolve against
directory.
Output
Returns a SuiteRunStatus JSON object containing the suiteRunId to pass to suite_run_status and suite_run_stop.
{
"suiteRunId": "sr_01J...",
"status": "running",
"error": null,
"counts": { "total": 20, "passed": 0, "failed": 0, "flaking": 0, "skipped": 0 },
"failures": [],
"reportUrl": null,
"resultsPath": null
}Not available from the dashboard.
Check suite run status
Check suite run status
Reads live progress, pass/fail counts, failures, and report links for a suite run.
Not available from CLI.
suite_run_statusLocal MCP server onlyExample promptCheck whether the background suite run has finished yet.
Check status rather than counts.failed to decide whether the suite passed, because counts.failed can include quarantined tests.
suiteRunIdstringrequired- Suite run ID returned by
suite_run_start.
Output
Returns a SuiteRunStatus object. status is running until tests and local cleanup finish, then passed, failed, stopped, or error. failures, reportUrl, and resultsPath are populated once the run finishes.
{
"suiteRunId": "sr_01J...",
"status": "failed",
"error": null,
"counts": { "total": 20, "passed": 19, "failed": 1, "flaking": 0, "skipped": 0 },
"failures": [
{
"file": "tests/checkout.spec.ts",
"line": 47,
"project": "chromium",
"message": "expect(locator).toBeVisible() timed out"
}
],
"reportUrl": "https://endform.dev/app/org/.../suite-runs/sr_01J...",
"resultsPath": "/tmp/endform-suite-runs/sr_01J.../results.json"
}- Open your organization in the Endform dashboard and select Suites or open a recent run from Overview.
- Select a suite run to see live progress, pass/fail counts, duration, and individual test attempts.
Stop a suite run
Stop a suite run
Cancels remaining tests in an active background suite run and cleans up its local web servers.
Not available from CLI.
suite_run_stopLocal MCP server onlyExample promptStop the running suite so we can fix the broken fixture before rerunning.
Stopping a run that has already finished is safe and returns its final status.
suiteRunIdstringrequired- Suite run ID returned by
suite_run_start.
Output
Returns the final SuiteRunStatus JSON object with status: "stopped" (or the terminal status if it had already finished).
Not available from the dashboard.
Behavior notes
- Suite outcome vs. failed counts: A quarantined test still runs and appears in
counts.failed, but it does not fail the suite run. Use the CLI exit code or the MCPstatusfield (passed,failed,stopped, orerror) to determine whether the suite passed. - Playwright flag compatibility:
endform testforwards Playwright's test selection, retry, reporter, and snapshot flags. Flags that only apply to local worker orchestration (--workers,--headed,--ui, and--list) are not used because Endform isolates each test on its own remote runner. - Local servers and private networks: Endform reaches
localhostand private networks over built-in tunnels whenever your PlaywrightwebServeror local app runs on the machine executing the CLI or local MCP server. See Local server.
Last updated