Skip to content

aim2120/SwiftSnapshotTestingRepeatRunningBug

Repository files navigation

SwiftSnapshotTesting Repeat Running Bug

This project demonstrates a minimal reproduction of a bug currently in swift-snapshot-testing where repeat running of a test written with Swift Testing is unable to accomodate repeat running.

Steps

  1. Run xcodebuild -scheme SwiftSnapshotTestingRepeatRunningBug -destination "platform=macOS" test | xcbeautify
  2. Observe success
  3. Run xcodebuild -scheme SwiftSnapshotTestingRepeatRunningBug -destination "platform=macOS" -test-iterations 10 test | xcbeautify
  4. Observe failure on repeat runs
  5. Observe that snapshots are recorded to disk for each repeated iteration
  6. Delete those new snapshots
  7. Uncomment File.counter.reset() in snapshotTest
  8. Run the xcodebuild command with iterations again
  9. Observe success

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages