Test Runs
Execute all published workflows as regression tests.
Test Runs
Test runs execute all your published workflows in a single batch, capturing pass/fail results for each workflow. They serve as regression tests to ensure your application continues working as expected after changes.
Starting a Test Run
- Go to Runs in the sidebar
- Click New Run → Test Run
- All published workflows will execute concurrently
Note: The "Test Run" option is only available if you have at least one published workflow.
What Happens During a Test Run
When you start a test run:
- Discovery - Canary finds all workflows with status "published"
- Execution - Each workflow runs concurrently in its own browser session
- Verification - Results are checked against expected outcomes
- Reporting - Pass/fail status is recorded for each workflow
Test runs use the same execution engine as individual workflow runs, including automatic retries for flaky failures.
Test Run Statuses
| Status | Meaning |
|---|---|
| Queued | Test run is waiting to start |
| Running | Workflows are executing |
| Completed | All workflows finished successfully |
| Completed (Errors) | One or more workflows failed |
Workflow Outcomes
Each workflow in a test run has its own outcome:
| Outcome | Meaning |
|---|---|
| Success | Workflow passed on first attempt |
| Failed | Workflow failed after all retries |
| Flaky Success | Workflow passed after one or more retries |
| Waiting | Workflow is paused at a Wait node |
Auto-Verification and Issue Filing
When a workflow fails during a test run:
- The failure is analyzed to determine if it's a real bug or test instability
- If it's a real bug, an issue is automatically created with:
- Screenshot at the moment of failure
- Steps that led to the failure
- Error message and context
- Issues are deduplicated - the same failure won't create multiple issues
Viewing Test Run Results
From the Runs page:
- Click the Test Runs tab
- Click any test run row to see details
- View per-workflow outcomes and drill into specific failures
CI/CD Integration
Test runs can be triggered from your CI/CD pipeline:
# Start a test run via API
curl -X POST https://api.trycanary.ai/workflows/test-runs \
-H "Authorization: Bearer $CANARY_API_KEY"
See the CI/CD Integration guide for detailed setup instructions.
Best Practices
- Keep workflows published - Only published workflows are included in test runs
- Use descriptive names - Makes it easier to identify which test failed
- Add Wait nodes carefully - Workflows with Wait nodes take longer to complete
- Monitor flaky tests - Workflows that frequently show "Flaky Success" may need adjustment
- Run before deploys - Use test runs as a quality gate before production deployments