Quick Reference
After your Playwright tests finish in GitHub Actions, upload results to TestDino with a single command. This table shows the upload options and flags you need to get started.| Task | Command/Flag |
|---|---|
| Basic upload | npx tdpw upload ./playwright-report --token="..." |
| With HTML report | --upload-html |
| With all artifacts | --upload-full-json |
| Set environment | --environment="staging" |
| Always run | if: always() |
Basic Workflow
Add the upload step after your Playwright tests:if: always() condition ensures results upload even when tests fail.
Store the API Key
- Go to your GitHub repository
- Open Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
TESTDINO_TOKEN - Value: Your TestDino API key
- Click Add secret
Need an API key? See Generate API Keys for step-by-step instructions.
Configure Playwright
Updateplaywright.config.js to generate the required reports:
Upload Options
| Flag | Description |
|---|---|
--upload-html | Include HTML report for interactive viewing |
--upload-images | Include screenshots |
--upload-videos | Include video recordings |
--upload-traces | Include Playwright traces |
--upload-full-json | Include all artifacts |
--environment | Set target environment tag |
Environment Tagging
Tag uploads with an environment to organize results:Full Artifacts Example
Upload all evidence for debugging:Rerun Failed Tests
Cache test metadata to enable selective reruns:Sharded Tests with Smart Reruns
Run tests in parallel shards with automatic failed test detection:Related
Generate API Keys
Create upload tokens
GitHub CI Checks
Configure quality gates for PRs
CI Optimization
Reduce CI time with smart reruns
Environment Mapping
Map branches to environments