Skip to main content
Set up CircleCI to upload Playwright test results to TestDino using the TestDino Orb , a prebuilt package that wraps the TestDino CLI so you don’t need to install it separately.
RecommendationFor more configuration options and the latest features, use the TestDino CLI approach instead. The Orb wraps the CLI but may not include all new updates immediately.

Pick an upload mode

The orb supports 4 upload modes. Pick one based on what you want in the dashboard.

Prerequisites

playwright.config.js

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 Upload

.circleci/config.yml

Upload with HTML Report

.circleci/config.yml

Upload Full Bundle

Include all artifacts (JSON, images, videos) in one upload.
.circleci/config.yml

Upload with Custom Paths

Specify custom report paths and include images and videos.
.circleci/config.yml

Orb Parameters

TipUse CircleCI contexts (e.g., testdino-credentials) to manage secrets across multiple jobs without repeating environment variable setup.

Sharded Test Runs

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

How it works

  1. CircleCI runs Playwright across 4 containers using parallelism: 4
  2. Each container writes its results to its own report directory
  3. The orb uploads each report with the same ci_run_id so TestDino merges them into a single run
  4. No merge job runs after the containers finish

Full sharded config

.circleci/config.yml

Key details

Pipeline execution

After the workflow runs, CircleCI shows all shard containers in the pipeline view. Each container uploads its report, and TestDino merges them into one run. CircleCI pipeline view showing 4 parallel Playwright shard containers, each uploading Playwright results to TestDino

Results in TestDino

The test run appears in your TestDino dashboard with full failure details, flaky detection, and trend data once the shards finish uploading. TestDino Test Runs dashboard showing results uploaded from CircleCI with pass/fail counts and AI Insights

Troubleshooting

Ensure the orb is imported correctly: testdino: testdino/testdino@1.0.0. Check the CircleCI Orb Registry for the latest version.
Pass the same ci_run_id: $CIRCLE_WORKFLOW_ID to every shard container. Different values create one run per shard.
Confirm the environment variable is set in CircleCI → Project Settings → Environment Variables. If using contexts, verify the job references the correct context name.

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