what's new in 2026 wwdc about swift testing?

Asked on 2026-06-12

1 search

In WWDC 2026, the main Swift Testing update is better interoperability between XCTest and Swift Testing:

  • XCTest assertion failures now show up as test issues when called from Swift Testing
    • This helps you migrate without silently losing coverage.
  • Swift Testing APIs like #expect also work inside XCTestCase
    • So helper APIs can behave consistently in either framework.
  • Cross-framework issues are reported as warnings by default
    • You can promote them to test failures in Xcode build settings if you want stricter enforcement.

Apple also recommends checking out Migrate to Swift Testing for migration strategies, and notes that Xcode 27 enables interoperability by default.

If you want, I can also summarize the Swift Testing-specific features mentioned in WWDC 2026 like parameterized tests and exit tests.

what's new in 2026 wwdc about swift testing? | Ask WWDC