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

[Request] Avoid automatically recording snapshots on CI

NachoSoto opened this issue · comments

I'm experimenting with moving to Xcode Cloud, and noticed that for some reason it's not finding the snapshots even though they're in the repo.
Because we have test retries enabled, I almost didn't see this, because the second try for every test passed:
Screenshot 2023-07-20 at 13 02 36

It occurs to me that it should be able to disable this behavior when running tests on CI, because the subsequent test run will always be a pass. If there is no snapshot when running tests on CI, it shouldn't try to create them.

Bonus points if there's an environment variable that the library can detect to automatically enable that setting in Xcode Cloud / CircleCI, etc.

I just discovered #553
I understand there's nothing that this framework can do to make that automatic, but at least I think it would be nice to make the issue more obvious. If I hadn't noticed the retries I wouldn't have noticed that this was broken.

Hey guys! Any news/updates? Thanks

Any Updates?