Skip to main content
Stream Playwright test results to TestDino from CircleCI during the run. @testdino/playwright sends results as tests execute, so no separate upload step runs.

Prerequisites

playwright.config.ts

Set Up Your API Key

  1. Open your project in CircleCI
  2. Go to Project Settings → Environment Variables
  3. Click Add Environment Variable
  4. Set the name to TESTDINO_TOKEN
  5. Paste your TestDino API key as the value
  6. Save the variable
WarningNever commit your API key directly in config files. Always use environment variables.

Basic Config

.circleci/config.yml
TipSet TESTDINO_TOKEN in Project Settings → Environment Variables so @testdino/playwright reads it during the run. Results stream live even when tests fail, so failures land on the dashboard without a when: always upload step.

Sharded Test Runs

For larger test suites, CircleCI parallelism splits tests across multiple containers. Each shard streams its own results, and TestDino groups them into one run when they share a ci-run-id.

How it works

  1. CircleCI runs Playwright across 4 shards using parallelism: 4
  2. Each shard streams its results to TestDino during the run
  3. Every shard passes the same --ci-run-id so TestDino merges them into a single run
  4. No merge or upload job runs after the shards finish

Full sharded config

.circleci/config.yml

Key details

Set the ciRunId reporter option in playwright.config to $CIRCLE_WORKFLOW_ID if you prefer running npx playwright test directly instead of npx tdpw test.

Run Locally

Troubleshooting

Confirm @testdino/playwright is in your playwright.config reporter array and TESTDINO_TOKEN is set in the project environment. Results stream during the run, so no separate upload step is required.
Pass the same --ci-run-id "$CIRCLE_WORKFLOW_ID" (or ciRunId reporter option) to every shard. Different values create one run per shard.
Confirm the environment variable is set in CircleCI → Project Settings → Environment Variables. Variable names are case-sensitive.

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