clanker run
Run the project's Playwright specs and publish the run to the workspace
clanker run [options] [playwrightArgs...]
Arguments
<playwrightArgs>…one or more stringsExtra Playwright arguments
Options
--environment <environment>stringEnvironment to test; its deployment of the product supplies the URL. Required to publish
--product <product>stringProduct to test (default: the product in clanker.json)
--base-url <url>stringTest this URL instead of the deployment's
--fixture-url <url>stringMake test data through this Fixture API instead of the deployment's
--keep-dataflagKeep the run's test data until its scope expires (not on production)
--workspace <slug>stringWorkspace slug or id (default: the linked workspace)
--coverage <level>stringCumulative coverage: critical, acceptance, regression, or exhaustive
--id <id>stringCase ID to include (repeatable)
--folder <folder>stringCase folder to include (repeatable)
--workers <count>stringTests to run at once: a number, or a percentage of CPU cores such as 100% (default: the Playwright config)
--shard <shard>stringRun this machine's share of the specs, such as 2/4
--run-key <key>stringThe key every shard of one run passes, so they publish one run, such as github-<run id>-<attempt>
--uiflagOpen the Playwright UI
--no-publishflagRun the specs without publishing the run
clanker run --environment stagingclanker run --environment staging --coverage criticalclanker run --no-publish --base-url http://127.0.0.1:3000