FluidGroup / Brightroom

📷 A composable image editor using Core Image and Metal.
https://www.notion.so/muukii/Brightroom-d4c59b37610a49de8a14131d24cd6162
MIT License
3.36k stars 307 forks source link

Test automation : How to compare images in UnitTest #89

Open muukii opened 3 years ago

muukii commented 3 years ago

adds unit tests that compare result image and expected image.

How do I compare images?

Metrics:

denisenepraunig commented 2 years ago

Hello!

What about using a Snapshot library like https://github.com/pointfreeco/swift-snapshot-testing - you can record your desired images and then those will be used as a reference in a normal unit test.

I've been using this for UI testing at work - like checking if labels are still in the correct position.

You can define also threshold or so.