Skip to content

Add rule to prefer Swift Testing for new test suites - #408

Merged
calda merged 2 commits into
masterfrom
cal--prefer-swift-testing
Sep 21, 2026
Merged

calda merged 2 commits into
masterfrom
cal--prefer-swift-testing

Conversation

@calda

@calda calda commented Sep 10, 2026

Copy link
Copy Markdown
Member

Summary

This PR proposes a new rule to prefer Swift Testing for new test suites.

Within Airbnb, we will autocorrect this for new test files using this setup from nicklockwood/SwiftFormat#2689:

# airbnb.swiftformat

[New Tests]
--filter header-creation-date-after:2026-08-31
--enable preferSwiftTesting

Reasoning

Swift Testing is the modern replacement for XCTest.

@calda
calda force-pushed the cal--prefer-swift-testing branch from 93b68b6 to 213cf78 Compare September 10, 2026 20:42
@calda
calda force-pushed the cal--prefer-swift-testing branch from 213cf78 to 8c1f106 Compare September 21, 2026 21:11
@calda
calda merged commit 7f06bf2 into master Sep 21, 2026
6 checks passed
@calda
calda deleted the cal--prefer-swift-testing branch September 21, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant