Orchestration (v1)
Playwright Orchestration Setup Guide for Currents v1
This page documents orchestration flow for deprecated v1 version of Currents. See Migration Guide.
Orchestration helps decrease the duration of Playwright tests in CI pipelines. Read our detailed guide on Playwright Parallelization that compares native sharding with orchestration.
How does it work
@currents/playwright contains a command-line executable pwc-p: a lightweight wrapper that implements Orchestration and runs Playwright behind the scenes.
it scans the testing suite
it establishes an orchestration session with Currents servers
it runs Playwright, executing spec files in the optimal order
the results are recorded to Currents for troubleshooting and analysis
Setup
Install @currents/playwright:
npm i @currents/playwrightReplace playwright with pwc-p:
npx pwc-p --key <record-key> --project-id <project-id> --ci-build-id <ci-build-id>pwc-p accepts additional Playwright arguments and flags (see @currents/playwright), for example:
# Add additional playwright arguments and flags:
pwc-p --key <record-key> --project-id <id> --ci-build-id <build-id> -- --workers 2 --timeout 10000Read more about CI Build ID and Reporting Strategy.
A successfully created orchestration prints an output similar to this:
Last updated
Was this helpful?