pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.

Home Page:https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancements to `diffTool`?

JackYoustra opened this issue · comments

My current workflow for image snapshot tests is usually imagemagik's compare tool, so I'll have a command like

compare "1.png" "2.png" png:- | open -a Preview.app -f

Unfortunately, the framework only lets me specify the "compare" step instead of providing the rest of the command. I was thinking on changing / adding a closure version of diffTool that'd be able to do this. Is there any interest in this or any ideas on how people would like a more generalized diffTool?

I would appreciate it if anyone can review this PR

#668