p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

Visual Testing Documentation Mismatch

Open pnngocdoan opened this issue 6 months ago • 0 comments
trafficstars

Most appropriate sub-area of p5.js?

  • [ ] Accessibility
  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [ ] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] Build process
  • [x] Unit testing
  • [ ] Internationalization
  • [ ] Friendly errors
  • [ ] Other (specify if possible)

p5.js version

No response

Web browser and version

No response

Operating system

No response

Steps to reproduce this

There's a mismatch in documentation for visual testing. The current visual tests at main branch only have a simple pixel-to-pixel comparison. I checked dev-2.0 and found the advanced algorithms that are introduced here. However, there was no Gruntfile at the dev-2.0 and it used vitest instead, while the documentation suggested using grunt. The vitest was also headless so I can't manually inspect the visual tests (I used npx vitest to open the tests in a browser but couldn't manually inspect each visual test either)

pnngocdoan avatar May 13 '25 07:05 pnngocdoan