Screenshot inventory
PNG paths, dimensions, sizes and SHA-256 hashes create a compact baseline without uploading image content.
Day 064 / Testing / Visual Regression
A dependency-free Python CLI that inventories local PNG screenshots and compares deterministic manifests to expose visual-file drift for human review.
PNG paths, dimensions, sizes and SHA-256 hashes create a compact baseline without uploading image content.
Baseline and current entries are matched by relative path and classified in predictable order for review.
The tool exposes file differences and states clearly that a reviewer must decide whether a visual change is acceptable.
Deterministic screenshot inventories
Added and removed file detection
Dimension and content drift evidence
Exact changed-field reporting
Text and JSON comparisons
Argparse, hashlib, JSON, pathlib, struct and unittest keep the tool portable and dependency-free.
The scanner rejects symlinks, unsafe paths, case-insensitive collisions, invalid PNG headers and bounded-input violations.
Tests cover PNG parsing, hashing, stable ordering, comparison states, changed fields and malformed manifests.