Replies: 2 comments
-
We're experiencing a 60% increase in random snapshot exits since updating to 1.18.3. We've reverted to a previous version. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi all, in order to use Swift Testing with SnapshotTesting you must apply the @Suite(.snapshots) This is what resets the counter for each test run, and it's what allows you to control the record mode and diff tool used. Since this isn't an issue with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When using Swift Testing with snapshot testing, running repeatedly (either in Xcode or with
xcodebuild -test-iterations N
) causes new snapshots to be recorded for each iteration, causing failures and excessive snapshots.To Reproduce
See this repo: https://github.com/aim2120/SwiftSnapshotTestingRepeatRunningBug (instructions included in README)
Expected behavior
When running Swift Testing snapshot tests repeatedly, each iteration is able to succeed and the initial snapshot is used for each testing iteration comparison.
Environment
Beta Was this translation helpful? Give feedback.
All reactions