--ci-run-id.
Prerequisites
- A TestDino account with a project created
- A TestDino API key (Generate API Keys)
- A GitLab account with CI/CD pipelines enabled on your repository
- 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
- Go to your GitLab project
- Open Settings → CI/CD
- Expand the Variables section
- Click Add variable
- Set the key to
TESTDINO_TOKEN - Paste your TestDino API key as the value
- Check Mask variable to hide it from job logs
- Save the variable
Basic Pipeline Config
For a simple setup without sharding, run your tests withTESTDINO_TOKEN set. Results stream to TestDino during the run, so no separate upload step is needed.
.gitlab-ci.yml: Basic pipeline
.gitlab-ci.yml: Basic pipeline
.gitlab-ci.yml
Sharded Test Runs
For larger test suites, the GitLab CI/CDparallel keyword splits tests across multiple jobs. Each shard streams its own results, and TestDino groups them into one run when they share a ci-run-id.
How it works
- GitLab CI/CD runs Playwright across 4 parallel shards
- Each shard streams its results to TestDino during the run
- Every shard passes the same
--ci-run-idso TestDino merges them into a single run - No merge or upload step runs after the shards finish
Full sharded config
.gitlab-ci.yml: Sharded pipeline
.gitlab-ci.yml: Sharded pipeline
.gitlab-ci.yml
Key details
Set the
ciRunId reporter option in playwright.config to $CI_PIPELINE_ID if you prefer running npx playwright test directly instead of npx tdpw test.
Pipeline execution
After the pipeline runs, GitLab shows all shard jobs in the pipeline view. Each shard streams its results, and TestDino merges them into one run.
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 available to the job. Results stream during the run, so no separate upload step is required.TESTDINO_TOKEN not available in job
TESTDINO_TOKEN not available in job
Confirm the variable is set in Settings → CI/CD → Variables. If the variable is marked Protected, it is only available on protected branches.
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
GitLab Integration
MR comments and merge request sync