Lightlines
By dpearson2699

swift-testing

dpearson26994k installs

Swift unit tests that coexist with XCTest.

What it does

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.

How to use it

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

  • An existing project

Latest review

What you need · 2

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.


Access · 0

No additional actions listed.