Skip to content

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

Open
bkhouri wants to merge 1 commit into
bkhouri/t/main/migrate_tests_to_swift_testing_batch2from
bkhouri/t/main/migrate_tests_to_swift_testing_batch3
Open

Migrate more end-to-end test suites to Swift Testing#950
bkhouri wants to merge 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
@@ -107,27 +106,27 @@ private struct Bar: ParsableArguments {
// swift-format-ignore: AlwaysUseLowerCamelCase
// https://github.com/apple/swift-argument-parser/issues/710

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: these comments are removed in another PR.

@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
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 a1cd205 to 9fdcea3 Compare August 27, 2026 17:07
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