Convert to swift testing - #8
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR converts the test suite from XCTest to Swift Testing framework, updating both the test implementation and package dependencies to support the new testing approach.
- Replaces XCTest imports and class-based tests with Swift Testing's
@Suiteand@Testannotations - Updates test method signatures to remove
throwsdeclarations and qualify macro testing calls - Upgrades MacroTester and SwiftSyntax dependencies to versions compatible with Swift Testing
Reviewed Changes
Copilot reviewed 2 out of 6 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Tests/MemberwiseInitializerTests/MemberwiseInitializerTests.swift | Converts XCTest-based test class to Swift Testing struct with @suite and @test annotations |
| Package.swift | Updates MacroTester and SwiftSyntax dependencies to newer versions supporting Swift Testing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| MacroTester.testMacro(macros: testMacros) | ||
| } | ||
|
|
||
| func testMemberwiseInitializerWithConstant() throws { | ||
| testMacro(macros: testMacros) | ||
| @Test func memberwiseInitializerWithConstant() { | ||
| MacroTester.testMacro(macros: testMacros) |
There was a problem hiding this comment.
The function calls have inconsistent indentation. They should align with the standard 2-space indentation used elsewhere in the file instead of 6 spaces.
| func testMemberwiseInitializerWithConstant() throws { | ||
| testMacro(macros: testMacros) | ||
| @Test func memberwiseInitializerWithConstant() { | ||
| MacroTester.testMacro(macros: testMacros) |
There was a problem hiding this comment.
The function calls have inconsistent indentation. They should align with the standard 2-space indentation used elsewhere in the file instead of 6 spaces.
| MacroTester.testMacro(macros: testMacros) | |
| MacroTester.testMacro(macros: testMacros) |
No description provided.