Skip to content
tools for techies
Colour theme

Visual Regression Testing

Screenshot your branch, compare it to main, see what moved.

VS Code extension, version 1.7.0, MIT licence.

VS Code with the Visual Regression Testing quick pick open, offering Run Test and Show Report, and a Visual Tests item in the status bar
Run a test or open the last report from the status bar.

What it does

Baseline from main
Captures main, then your branch, and diffs them.
Branch switching handled
Does the Git checkouts and warns you about uncommitted work first.
Report with a slider
Drag across before and after to spot the change.
Saved URL sets
Keep the routes you test every time.
Works with your setup
Uses your existing Playwright config.

How to use it

  1. Commit or stash your changes.
  2. Run Visual Tests from the status bar.
  3. The extension captures main, then your branch.
  4. If anything differs, the report opens.

Settings

SettingDefaultWhat it does
testPathtests/visualWhere your Playwright tests live
mainBranchmainBranch to take the baseline from
serverStartCommandnpm run devStarts your dev server
serverPort3000Port the dev server runs on
waitForSelector""Element to wait for before each screenshot
autoRunOnSavefalseRe-run tests when you save

More tools like this