-
Notifications
You must be signed in to change notification settings - Fork 0
Convert to swift testing #8
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
Conversation
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.
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) |
Copilot
AI
Sep 29, 2025
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.
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) |
Copilot
AI
Sep 29, 2025
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.
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.