swift-snapshot-testing icon indicating copy to clipboard operation
swift-snapshot-testing copied to clipboard

Enhancements to `diffTool`?

Open JackYoustra opened this issue 2 years ago • 2 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?

JackYoustra avatar Sep 26 '23 00:09 JackYoustra

I would appreciate it if anyone can review this PR

https://github.com/pointfreeco/swift-snapshot-testing/pull/668

tisohjung avatar Oct 11 '23 17:10 tisohjung

@JackYoustra you can probably make an alias to your command which would take the two parameters and run the whole thing.

endanke avatar Dec 31 '23 21:12 endanke

Closed via #867.

mbrandonw avatar Jul 08 '24 20:07 mbrandonw