Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 3, 2025

This PR adds a small amount of interop between Swift Testing and XCTest so that, if a test throws an error of type XCTSkip, it is treated as if the test were cancelled.

Additional changes will be needed in XCTest and corelibs-xctest to fully implement this functionality.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR adds a small amount of interop between Swift Testing and XCTest so that,
if a test throws an error of type `XCTSkip`, it is treated as if the test were
cancelled.

Additional changes will be needed in XCTest and corelibs-xctest to fully
implement this functionality.
@grynspan grynspan added this to the Swift 6.x (main) milestone Sep 3, 2025
@grynspan grynspan self-assigned this Sep 3, 2025
@grynspan grynspan added enhancement New feature or request tools integration 🛠️ Integration of swift-testing into tools/IDEs issue-handling Related to Issue handling within the testing library parameterized-testing Related to parameterized testing functionality labels Sep 3, 2025
@grynspan
Copy link
Contributor Author

grynspan commented Sep 3, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Sep 4, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Sep 4, 2025

See also swiftlang/swift-corelibs-xctest#511

@grynspan
Copy link
Contributor Author

grynspan commented Sep 4, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Sep 4, 2025

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request issue-handling Related to Issue handling within the testing library parameterized-testing Related to parameterized testing functionality tools integration 🛠️ Integration of swift-testing into tools/IDEs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant