Skip to content

Migrate all tests from XCTest to Swift Testing framework - #134

Merged
tgymnich merged 4 commits into
masterfrom
migrate-xctest-to-swift-testing
Aug 19, 2026
Merged

Migrate all tests from XCTest to Swift Testing framework#134
tgymnich merged 4 commits into
masterfrom
migrate-xctest-to-swift-testing

Conversation

@tgymnich

@tgymnich tgymnich commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Migrate all tests from XCTest to Swift Testing framework

  • Converted all 15 test files across 4 groups from XCTest to Swift Testing
  • Replaced XCTestCase classes with @suite structs
  • Replaced XCTAssertEqual/XCTAssertNil/XCTAssertFalse with #expect
  • Replaced XCTAssertThrowsError with do/catch/Issue.record pattern
  • Reverted ProfileTests.swift to XCTest (uses XCTest-specific measure APIs under #if Profile)
  • Fixed pre-existing test failures: bitWidth check, capacity assertions

tgymnich added 3 commits June 30, 2026 21:27
Migrate all tests from XCTest to Swift Testing framework

- Converted all 15 test files across 4 groups from XCTest to Swift Testing
- Replaced XCTestCase classes with @suite structs
- Replaced XCTAssertEqual/XCTAssertNil/XCTAssertFalse with #expect
- Replaced XCTAssertThrowsError with do/catch/Issue.record pattern
- Removed unused file:/line: parameters from helper functions
- Reverted ProfileTests.swift to XCTest (uses XCTest-specific measure APIs under #if Profile)
- Fixed pre-existing test failures: bitWidth check, capacity assertions
- All 211 tests in 11 suites pass with zero errors
@tgymnich
tgymnich force-pushed the migrate-xctest-to-swift-testing branch from 5a383d5 to 4e802bf Compare June 30, 2026 19:40
@tgymnich tgymnich mentioned this pull request Jun 30, 2026
@tgymnich
tgymnich force-pushed the migrate-xctest-to-swift-testing branch 2 times, most recently from 6b903ff to fc9a473 Compare June 30, 2026 19:46
@tgymnich
tgymnich force-pushed the migrate-xctest-to-swift-testing branch from fc9a473 to 42c1982 Compare June 30, 2026 19:53
@tgymnich
tgymnich marked this pull request as ready for review July 4, 2026 21:46
@tgymnich
tgymnich merged commit 63feef7 into master Aug 19, 2026
10 checks passed
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