processing4 icon indicating copy to clipboard operation
processing4 copied to clipboard

Implement image comparison for visual tests

Open SableRaf opened this issue 1 year ago • 7 comments

Implement a visual snapshot testing system, inspired by the one used in p5.js.

[!NOTE] This has been added to our GSoC 2025 project list.

Goals

  • [ ] Develop a visual snapshot testing framework for Processing.
  • [ ] Automate image comparisons using pixel matching (e.g., image-comparison).
  • [ ] Integrate the testing system into GitHub workflows.
  • [ ] Port existing p5.js snapshot tests and develop new ones for Processing’s Java environment.

Motivation

This will benefit both the Processing community and its future contributors by providing a reliable way to catch visual regressions, making it easier for contributors to propose changes with confidence.

References

Read more about the p5.js approach in the documentation and this contributor blog post.

SableRaf avatar Dec 13 '24 10:12 SableRaf