ImagineEngine icon indicating copy to clipboard operation
ImagineEngine copied to clipboard

UI/snapshot testing

Open JohnSundell opened this issue 7 years ago • 2 comments

Some parts of Imagine Engine are a bit tricky to fully test with unit tests. While we are getting to a pretty high coverage now, parts of the rendering code are not really covered by tests, making refactors & fixes slow and risky.

It would be interesting to experiment with UI testing or snapshot testing for some of these cases, where we could - for instance - render an object and assert that the visual outcome matched our expectation.

I think if we can combine this with our current suite of unit tests we will have a quite strong test suite and will be able to move faster with great quality 👍

JohnSundell avatar Jan 16 '18 18:01 JohnSundell

o3x has good snapshot features.

TyrfingMjolnir avatar Feb 07 '18 18:02 TyrfingMjolnir

How about using this one? https://github.com/pointfreeco/swift-snapshot-testing it should be quite easy to use or extend if needed

kaqu avatar Apr 14 '19 11:04 kaqu