Skip to content

Migrate more end-to-end test suites to Swift Testing - #950

Merged
bkhouri merged 1 commit into
bkhouri/t/main/migrate_tests_to_swift_testing_batch2from
bkhouri/t/main/migrate_tests_to_swift_testing_batch3
Sep 1, 2026
Merged

Migrate more end-to-end test suites to Swift Testing#950
bkhouri merged 1 commit into
bkhouri/t/main/migrate_tests_to_swift_testing_batch2from
bkhouri/t/main/migrate_tests_to_swift_testing_batch3

Conversation

@bkhouri

@bkhouri bkhouri commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Migrate four ArgumentParserEndToEndTests suites from XCTest to
Swift Testing:

  • ShortNameEndToEndTests
  • JoinedEndToEndTests
  • LongNameWithSingleDashEndToEndTests
  • SimpleEndToEndTests

Each file previously imported both Testing and XCTest from earlier
prep work but still used XCTestCase and XCTAssert*. Convert to
@Suite struct + @Test func, AssertParseexpectParse,
XCTAssertEqual#expect(a == b), and XCTAssertThrowsError
#expect(throws: (any Error).self). No new helpers required.

Relates to #710

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

Stack created with GitHub Stacks CLIGive Feedback 💬

@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from 0edbff1 to e021a09 Compare August 25, 2026 03:26
@bkhouri
bkhouri marked this pull request as ready for review August 25, 2026 03:37
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch 3 times, most recently from 27c9e75 to 09725fa Compare August 25, 2026 04:01
Comment thread Tests/ArgumentParserEndToEndTests/JoinedEndToEndTests.swift
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch 2 times, most recently from 877bf6f to 3be2783 Compare August 26, 2026 07:49
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from 3be2783 to bed5d29 Compare August 26, 2026 07:54
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from bed5d29 to 59d2488 Compare August 26, 2026 18:18
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from 59d2488 to b96fc3c Compare August 26, 2026 19:55
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from b96fc3c to 7a53978 Compare August 27, 2026 02:47
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from 7a53978 to a1cd205 Compare August 27, 2026 15:43
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from a1cd205 to 9fdcea3 Compare August 27, 2026 17:07
Migrate four `ArgumentParserEndToEndTests` suites from XCTest to
Swift Testing:

- `ShortNameEndToEndTests`
- `JoinedEndToEndTests`
- `LongNameWithSingleDashEndToEndTests`
- `SimpleEndToEndTests`

Each file previously imported both `Testing` and `XCTest` from earlier
prep work but still used `XCTestCase` and `XCTAssert*`. Convert to
`@Suite struct` + `@Test func`, `AssertParse` → `expectParse`,
`XCTAssertEqual` → `#expect(a == b)`, and `XCTAssertThrowsError` →
`#expect(throws: (any Error).self)`. No new helpers required.

Relates to #710
@bkhouri
bkhouri force-pushed the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch from 9fdcea3 to 4e22d2e Compare August 31, 2026 20:22
@bkhouri
bkhouri merged commit 055d865 into main Sep 1, 2026
49 of 52 checks passed
@bkhouri
bkhouri deleted the bkhouri/t/main/migrate_tests_to_swift_testing_batch3 branch September 1, 2026 01:59
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.

2 participants