~/talk

Unlocking the Power of Swift Testing: Modern Approaches to Testing iOS Apps

Talkat iOS Conf SG 2025 · 2025-01-15..01-17· [testing]
slides:none on file

Swift Testing is a new open‑source package that replaces many XCTAssert variants with a single expect macro, adds parameterized testing and suites/traits/tags for grouping, and runs on all Swift platforms; migration is gradual (requires Xcode 16+) and often quick for simple tests. Real projects show cleaner names, fewer helper loops, and one line per assertion, but testing legacy closures and Combine publishers needs continuations or a continuation wrapper (extra boilerplate), and UI interaction still relies on XCUITest.

AI-written summary · about

  1. 0:00Introduction to Swift testing
  2. 2:04What is Swift testing
  3. 3:29Migrating a legacy test
  4. 4:42Swift testing syntax
  5. 6:34Assertions and error handling
  6. 8:50Using test traits
  7. 10:31Organizing tests with suites
  8. 12:51Custom tags for filtering
  9. 14:03Parameterized testing
  10. 16:16Migration insights and tips
  11. 19:25Testing asynchronous code
  12. 24:02Testing Combine publishers
  13. 27:00Conclusion and best practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.