.buildkite/pipeline.yml in your repository. This guide covers a basic run and a parallel sharded setup that streams results to TestDino during the run.
Prerequisites
- A TestDino account with a project created
- A TestDino API key (Generate API Keys)
- A Buildkite pipeline connected to your repository, with an agent in a cluster
- A Playwright test project (or clone the TestDino Example Repository to get started)
@testdino/playwrightinstalled and configured inplaywright.config.ts|js|mjs:
playwright.config.ts
Set Up Your API Key
Store your TestDino API key as a Buildkite cluster secret so it reaches the job without being written into.buildkite/pipeline.yml.
- In Buildkite, go to Agents
- Open Clusters and select the cluster your pipeline runs on
- Open Secrets, then click New Secret
- Set the Key to
TESTDINO_TOKEN - Paste your TestDino API key into the value
- Save the secret
secrets plugin reads the secret at runtime and exposes it as an environment variable. Buildkite redacts secret values from build logs automatically.
Basic Pipeline Config
For a simple setup without sharding, run your tests withTESTDINO_TOKEN injected. Results stream to TestDino during the run, so no separate upload step is needed.
.buildkite/pipeline.yml: Basic pipeline
.buildkite/pipeline.yml: Basic pipeline
.buildkite/pipeline.yml
Sharded Test Runs
For large test suites, run shards in parallel. Each shard streams its own results, and TestDino groups them into one run when they share aci-run-id.
How it works
parallelism: 4fans the step out into 4 Buildkite jobs- Each shard runs Playwright with
--shard=<n>/<total>from its parallel-job index - Each shard streams its results to TestDino during the run
- Every shard sets the same
TESTDINO_CI_RUN_IDso TestDino merges them into a single run - No merge or upload step runs after the shards finish
Full sharded config
.buildkite/pipeline.yml: Sharded pipeline
.buildkite/pipeline.yml: Sharded pipeline
.buildkite/pipeline.yml
Key details
Set the
ciRunId reporter option in playwright.config to process.env.TESTDINO_CI_RUN_ID if you prefer to pass it through the config instead of relying on the environment variable.
Pipeline execution
After the build starts, Buildkite shows each shard as a separate job under the step. Each shard streams its results, and TestDino merges them into one run as they complete.Results in TestDino
The test run appears in your TestDino dashboard with full failure details, flaky detection, and trend data as tests complete.Troubleshooting
Results not appearing on the dashboard
Results not appearing on the dashboard
Confirm
@testdino/playwright is in your playwright.config reporter array and TESTDINO_TOKEN is injected. The docker plugin must list TESTDINO_TOKEN under environment so the value reaches the container. Results stream during the run, so no separate upload step is required.TESTDINO_TOKEN not available in the job
TESTDINO_TOKEN not available in the job
Open Agents → Clusters → your cluster → Secrets and confirm a secret with the exact key
TESTDINO_TOKEN exists. The secrets plugin variables map is ENV_VAR: "SecretKey", and secret keys are case-sensitive.Related
CI Optimization
Reduce CI time with smart reruns
Environment Mapping
Route test results to Dev, Staging, or Production by branch
Integrations
Connect Slack, Jira, Linear, Asana, and more
TestDino MCP
Access test results and fix issues with AI agents