Swift unit tests that coexist with XCTest.
Guides writing Swift unit tests and migrating XCTest suites while preserving appropriate UI, performance, and snapshot testing boundaries.
When to use it
Use when writing tests, migrating XCTest assertions, reviewing advanced API availability, or deciding which tests should remain on XCTest/XCUITest.
It changes how the agent writes and migrates project tests, favoring Swift Testing for unit tests while retaining XCTest for appropriate testing boundaries.
What you provide
The basic guidance targets Swift 6+. Advanced APIs have higher gates: exit testing requires Swift 6.2 / Xcode 26.0; capture lists require the Swift 6.3 compiler; cancellation, warnings, and image attachments require Swift 6.3 / Xcode 26.4-era support.
The unit-testing guidance uses the Swift Testing framework, imported as Testing.
No additional actions listed.