rust-gamedev/wg

Snapshot testing

naomijub opened this issue · 2 comments

A few weeks ago I created this crate/repository to UI test a game that I was working on and I would really like ideas to improve the UI testing crate.
https://github.com/naomijub/rust-game-tutorial/tree/main/test_ggez

One thing I'd sugges that you'd probably want to look into:

  • PSNR for image comparison. It sounds fancy, but the underlying formula is quite simple.

It helps with small variations you may get on different platforms you run the tests on.

Definitively sounds better than my other idea (openCV)