Use this pre-built prompt to integrate @testdino/playwright into your project.
@testdino/playwright streams Playwright test results to TestDino as a run executes. Results appear on the dashboard live, with no separate upload step.
Quick Reference
Prerequisites
- Node.js
>= 18.0.0 @playwright/test>= 1.52.0- TestDino API token (generate one)
- Git initialized repository (for commit and branch metadata)
Installation
Set up
Add TestDino to thereporter array in your Playwright config. This is the only entry TestDino needs. Other reporters (html, list) are optional and yours to keep.
playwright.config.ts
Prefer not to edit your config?
Prefer not to edit your config?
Run It wraps
tdpw test instead of npx playwright test. Same result, no config change.npx playwright test, so any Playwright flag passes through, for example npx tdpw test --project=chromium --shard=1/3.CLI flags
Set the token with-t or the TESTDINO_TOKEN environment variable. All other flags are optional.
Sharded runs
Pass the same--ci-run-id to every shard. TestDino groups them into a single logical run on the dashboard.
ciRunId option and pass --shard to npx playwright test as usual.
Code coverage
Instrument your app with Istanbul so it exposeswindow.__coverage__, import the TestDino fixture in your tests, then enable coverage:
Environment variables
What gets collected
Use in CI/CD
SetTESTDINO_TOKEN as a CI secret, keep TestDino in your playwright.config, and run npx playwright test. Each guide below has a full pipeline config with sharding and troubleshooting.
GitHub Actions
GitLab
TeamCity
Azure DevOps
CircleCI
AWS CodeBuild
Jenkins
Troubleshooting
Token is required but not provided
Token is required but not provided
Set the token via Generate a new token from API Keys if the issue persists.
--token, the TESTDINO_TOKEN environment variable, or the reporter option in playwright.config. Confirm it is set:Execution limit reached
Execution limit reached
Your account reached its monthly quota. Tests continue to run normally. Only streaming to TestDino pauses until the quota resets.Upgrade your plan or wait for the monthly reset.
Stream dropped, switched to HTTP fallback
Stream dropped, switched to HTTP fallback
Expected behavior. If the streaming connection drops, events fall back to HTTP delivery automatically. Your tests are never affected.
Enable debug logging
Enable debug logging
Related
Real-Time Test Streaming
How live streaming works and when to use it
Generate API Keys
Create and manage tokens for the CLI and CI