Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated testing of WebGL rendering #249

Open
2 tasks
tuner opened this issue Mar 15, 2024 · 0 comments
Open
2 tasks

Automated testing of WebGL rendering #249

tuner opened this issue Mar 15, 2024 · 0 comments

Comments

@tuner
Copy link
Member

tuner commented Mar 15, 2024

Currently, rendering has no automated testing of any kind. In fact, there are also no proper integration tests! Something could be built with puppeteer and by implementing #75 or just taking a screenshot of the canvas.

  • Render the specs in the examples folders as "Golden images", which can be used for comparisona. As some of them use random function, we need a possibility to provide a constant random seed for deterministic results. pixelmatch could be useful here.
  • Use vitest or just plain nodejs to write tests that regenerate the images and compare them to the golden images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant