Tool Visual Regression
Category: Visual Testing Β· Tier: All
Run visual regression against a baseline. Uses Wasserstein smart regression if a smart baseline exists. Falls back to traditional comparison otherwise.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| url | string | Yes | β | URL to test |
| baselineName | string | Yes | β | Name of baseline to compare against |
| transportMap | boolean | No | false | Generate a visual transport map showing where content moved |
| threshold | number | No | adaptive | Override similarity threshold (0-1) |
Examples
Run visual regression on our staging site against the homepage baseline
Check if anything changed on the checkout page and show me a transport map
Auto-Detection
Checks if a smart baseline (created with visual_baseline captures=5) exists:
- Smart baseline found β Wasserstein distance with adaptive threshold
- Traditional baseline found β Standard comparison (suggests upgrading)
Research
- Agueh & Carlier (SIAM 2011) β Barycenters in Wasserstein space
Related
visual_baselineβ Create baselines (single or smart)transport_mapβ Standalone transport map- Visual & Performance Tools β Full category docs