Day 064 / Testing / Visual Regression

Visual Regression Manifest

View source ↗Scroll to explore ↓
Visual Regression Manifest project cover
/ Overview

A dependency-free Python CLI that inventories local PNG screenshots and compares deterministic manifests to expose visual-file drift for human review.

NameVisual Regression Manifest

ClientIndependent daily build

IndustriesSoftware quality tooling

DateDay 064 · November 2, 2026

/ Challenge

Screenshot folders can drift between test runs without a compact record of what changed. Filenames alone miss dimension and content changes, while raw image review becomes noisy when files are added, removed or renamed.

/ Provided services

Clear thinking.
Practical delivery.

01

Screenshot inventory

PNG paths, dimensions, sizes and SHA-256 hashes create a compact baseline without uploading image content.

02

Stable comparison

Baseline and current entries are matched by relative path and classified in predictable order for review.

03

Human decision boundary

The tool exposes file differences and states clearly that a reviewer must decide whether a visual change is acceptable.

Visual Regression Manifest feature visual
/ Solution

Visual Regression Manifest scans a bounded local directory of PNG screenshots and records each safe relative path, width, height, byte size and SHA-256 digest in stable order. It compares baseline and current manifests as added, removed, changed or unchanged, including the exact metadata fields that differ. It rejects invalid PNG headers, path collisions, unsafe paths, duplicate JSON keys and oversized inputs. The report identifies file evidence only and explicitly leaves visual acceptance to a human reviewer.

/ Impact

Deterministic screenshot inventories

Added and removed file detection

Dimension and content drift evidence

Exact changed-field reporting

Text and JSON comparisons

/ Tech stack

Python standard library

Argparse, hashlib, JSON, pathlib, struct and unittest keep the tool portable and dependency-free.

Defensive file handling

The scanner rejects symlinks, unsafe paths, case-insensitive collisions, invalid PNG headers and bounded-input violations.

Twelve tests

Tests cover PNG parsing, hashing, stable ordering, comparison states, changed fields and malformed manifests.