Buildkite
Running Playwright tests in parallel on Buildkite with Currents
Last updated
Was this helpful?
Was this helpful?
import { currentsReporter } from "@currents/playwright";
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
reporter: [currentsReporter()],
// ... other config
});import { CurrentsConfig } from "@currents/playwright";
const currentsConfig: CurrentsConfig = {
projectId: process.env.CURRENTS_PROJECT_ID ?? "your-project-id",
recordKey: process.env.CURRENTS_RECORD_KEY ?? "",
};
export default currentsConfig;steps:
- label: ":playwright: Playwright Tests"
command: |
npm ci
npx playwright install --with-deps
npx playwright test --shard=$((BUILDKITE_PARALLEL_JOB + 1))/$BUILDKITE_PARALLEL_JOB_COUNT
parallelism: 3
plugins:
- docker#v5.11.0:
image: "mcr.microsoft.com/playwright:v1.60.0-noble"
env:
CURRENTS_PROJECT_ID: "bnsqNa"
CURRENTS_RECORD_KEY: "${CURRENTS_RECORD_KEY}"