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

Snapshot testing #107

Open
naomijub opened this issue Aug 8, 2021 · 2 comments
Open

Snapshot testing #107

naomijub opened this issue Aug 8, 2021 · 2 comments

Comments

@naomijub
Copy link

naomijub commented Aug 8, 2021

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

@AlexEne
Copy link
Member

AlexEne commented Aug 8, 2021

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.

@naomijub
Copy link
Author

naomijub commented Aug 8, 2021

Definitively sounds better than my other idea (openCV)

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

2 participants