-
Notifications
You must be signed in to change notification settings - Fork 12
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
Initial version of image comparison instead of file comparison #106
Conversation
@anayden 👏 Very cool stuff! To test the new tests I checked out the
Hopefully this what the right thing to do 🤞 Lots of tests failed which is expected, but to fully understand the new approach I wanted to use file I would've thought that these 2 files should be considered similar enough ™️ not to fail the test: I am curious to see an example that used to fail but does not fail anymore. To check this I am going to re-run on Once again thanks for your titanic efforts! 💪💻 |
@AntonPetrov thanks for the comments and review! You've done the testing correctly process-wise.
Somehow I didn't see this exact pair of images in my local testing. Could you share the filename? Either way, if 2 images have different sizes in pixels (by any reason), we can't compare them in a meaningful automated way. The only option would be to leverage computer vision and ML, but that can easily will make the tests slower than the app itself — and it's definitely way beyond my knowledge of image comparison algorithms. Basically, if sizes are different → we assume the images are different. In order to simplify visual testing and comparison, I've made few changes in the process.
Using this information, feel free to adjust the similarity threshold if needed. Also, looking forward to more feedback w/r/t test correctness. |
Several required folders were missing from the install
After Infernal 1.1.5 there is no need to install develop versions anymore
- pin version - final size 38M
Some images are indeed different, so not 100% of the tests pass, but this is expected.