pointfreeco / swift-snapshot-testing

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

Snapshot Tests not Creating Xcode Groups #766

Closed nikitaame closed 11 months ago

nikitaame commented 11 months ago

I'm not sure if it would even be possible, but currently, whenever tests are run and recorded, directories are created but not Xcode groups. Would it be possible to create them so that __Snapshots__ and the content within are visible directly in Xcode?

To Reproduce

Expected behavior

mbrandonw commented 11 months ago

Hi @nikitaame, sorry but this is not really feasible. We do not want to make edits to the Xcode project file from the library. That can cause Xcode to crash and corrupt the project file. If you put your tests in an SPM package then this will work automatically.

Also since this is not an issue with the library but rather a feature request, I am going to move it to a discussion. Feel free to continue the discussion there.