pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.74k stars 570 forks source link

Update Readme.MD #715

Closed WDI-Json closed 1 year ago

WDI-Json commented 1 year ago

I've added a code snippet for using SwiftUI and also extended the instructions for setting up.

In previous instructions, it seemed unclear to me where you needed to make changes concerning the build target. Therefore, I've made the instructions more clear and added some sample code when using SwiftUI in combination with SnapshotTesting. Would love to hear your thoughts on this!

stephencelis commented 1 year ago

Hey @WDI-Json, thanks for taking the time to submit a PR! I think the existing instructions should automatically link the library to the test target, though Xcode can make it easy to get this wrong.

At the end of the day we need to strike a balance between instructions that are library-specific and general to Xcode, and I think we want to lean toward not maintaining too much general-purpose Xcode instructions, so I'm inclined to leave it as-is. What do you think?

WDI-Json commented 1 year ago

Hey @stephencelis,

First of all, thank you for taking the time considering my pull request. I'm still kinda new to iOS-Development and wasn't sure if this would be a good improvement to your documentation. I wrote it thinking of other junior devs just starting out with snapshots, thinking it might improve setting up.

It's a minor change nonetheless which could help out. Then again I totally get your viewpoint.

Ps: love what you guys do with TCA!!