Using insta for geometric snapshot testing
#808
brunnerant
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to write tests for geometric algorithms. After some thinking about the problem, I think that the best solution would be to use snapshot testing, and compare test results with geometric predicates + some tolerance.
I came across your library while searching for a good snapshot testing framework, and it looks very mature. However, I don't know if what I just described would be possible using
insta. Is there a way to use custom equality predicates and binary files ? If so, I could implement the above by compressing the geometrical objects to binary files, and using custom comparison functions to handle tolerances...If not possible, would you recommend other libraries for snapshot testing ? Because all the file handling logic would be the same for my use case, so I don't want to re-invent the wheel...
Any help is welcome, and thank you for the great library!
Antoine Brunner
Beta Was this translation helpful? Give feedback.
All reactions