-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: Convert more tests to Swift Testing #8100
base: main
Are you sure you want to change the base?
Test: Convert more tests to Swift Testing #8100
Conversation
Ready for review, though it may be blocked as not all pipeline builds run with Swift 6.0! |
Looks like the Selft-hosted macOS pipeline is now running the nightly build |
@@ -43,17 +45,19 @@ final class SigningIdentityTests: XCTestCase { | |||
_ = SwiftSigningIdentity(certificate: certificate, privateKey: Certificate.PrivateKey(privateKey)) | |||
|
|||
// Test public API | |||
XCTAssertNoThrow( | |||
#expect(throws: Never.self) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just throw.
a3ff42c
to
ea6c8e8
Compare
This PR is blocked by #8137 |
Add helpers related to the current platform to assist with conditionally running test cases.
Convert additional test from XCTest to Swift Testing to make use of parallel execution and, in some cases, test parameterization. Not all Test Suite in the respective folders have been converted as some use helpers in swift-tools-core-support, which don't have a matching swift testing helper.
ea6c8e8
to
930ee2e
Compare
@swift-ci Please test nightly self hosted |
Convert additional suites from XCTest to Swift Testing
Motivation:
The XCTest run, by default, sequentially. Convert some suites from XCTest to Swift Testing to make use of parallel execution and, in some cases, test parameterization.
Not all Test Suite in the respective folders have been converted as some use helpers in swift-tools-core-support, which don't have a matching swift testing helper.
Modifications:
Convert XCTest to Swift Testing
Result:
Ran the equivalent of the following and ensured there were no test-related failures
Depends on #8099
Blocked by #8137
Requires swiftlang/swift#78300