- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.4k
 
Test: Convert more tests to Swift Testing #8100
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
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  | 
    
| 
               | 
          ||
| // 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  | 
    
ea6c8e8    to
    930ee2e      
    Compare
  
    | 
           @swift-ci Please test nightly self hosted  | 
    
930ee2e    to
    5a67108      
    Compare
  
    | 
           @swift-ci please test  | 
    
Add a canary swift testing tests to ensure we do not regress. This test will be removed sometime after swiftlang#8092, swiftlang#8093 or swiftlang#8100 are merged (cherry picked from commit 257e671)
Add a canary swift testing tests to ensure we do not regress. This test will be removed sometime after swiftlang#8092, swiftlang#8093 or swiftlang#8100 are merged (cherry picked from commit 257e671)
Add a canary swift testing tests to ensure we do not regress. This test will be removed sometime after swiftlang#8092, swiftlang#8093 or swiftlang#8100 are merged (cherry picked from commit 257e671)
Add a canary swift testing tests to ensure we do not regress. This test will be removed sometime after swiftlang#8092, swiftlang#8093 or swiftlang#8100 are merged
Add a canary swift testing tests to ensure we do not regress. This test will be removed sometime after swiftlang#8092, swiftlang#8093 or swiftlang#8100 are merged (cherry picked from commit 257e671) Re-adds swiftlang#8222, after it was reverted in swiftlang#8266 Depends on swiftlang/swift#79074
bc9ada0    to
    eab14bd      
    Compare
  
            
          
                Tests/PackageSigningTests/FilePackageSigningEntityStorageTests.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                Tests/PackageSigningTests/FilePackageSigningEntityStorageTests.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                Tests/PackageSigningTests/FilePackageSigningEntityStorageTests.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                Tests/PackageSigningTests/FilePackageSigningEntityStorageTests.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | } | ||
| 
               | 
          ||
| func testFromECKeyCertificate() throws { | ||
| @Test( | 
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.
praise: I'm liking the parameterized test cases and how they make the matrix visible and explicit.
| 
               | 
          ||
| func testSwiftSigningIdentityWithRSAKey() throws { | ||
| @Test | ||
| func swiftSigningIdentityWithRSAKey() throws { | 
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.
praise: This is a nice way to cut back on the test method name sizes.
Convert additional test from XCTest to Swift Testing to make use of parallel execution and, in some cases, test parameterization.
eab14bd    to
    f5fd53b      
    Compare
  
    | 
           @swift-ci test  | 
    
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.
Overall, this looks good. I've posted a few questions, and thoughts.
| 
           @swift-ci test windows  | 
    
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
Blocked by #8137
Blocked by swiftlang/swift#78300
Blocked by swiftlang/swift#81217