Golden Testing a CAD Library
Summary
The article explores golden/visual regression testing for a Haskell CAD library by using SVG outputs and image diffs to verify visual correctness. It explains the approach of comparing current and baseline images pixel-by-pixel with a Manhattan distance tolerance, and generating diff images on failures, leveraging libraries like tasty-golden, Rasterific-SVG, and JuicyPixels.