Ios

2026


A five-second Swift Testing wait timed out after its loop had run five times

A polling test helper failed with "ContinuousClock.now < deadline" only when its target ran in parallel. Snapshot suites held the main actor, so the wait got 3 to 5 turns in 5 seconds. A 60-second timeout would have hidden it. A turn budget fixed it, and a mutation showed that a real hang still fails within 5 seconds.
·6 mins

Snapshot precision 0.99 let a wrong text line pass all seven screen tests

A SwiftUI screen suite recorded with swift-snapshot-testing at precision: 0.99 stayed green after the row's location text was deliberately wired to the wrong value. On a full device frame, 1% of the pixels is about 30,000, and the wrong text changed about 900. Measuring the mutation and setting precision to 0.9999 turned four of the seven cases red.
·4 mins