-
Notifications
You must be signed in to change notification settings - Fork 205
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
Add support for Swift Testing... #281
Comments
Interesting... I haven't looked into Swift 6 compatibility yet, but there are some issues. It looks like SWXMLHash can build under Swift 6, but when I try to run the tests under it, those just crash. I'll have to do some research into what will be needed for full Swift 6 support. |
I've got a draft PR up at #283... branch is Feel free to give it a try to see if it works for you, though. EDIT - |
It doesn't work for me.
Still has an issue with the XMLDeserializationError.nodeHasNoValue not having an equatable conformance. |
Nevermind, read the code woolie. It works fine with your changes. |
That's great, thanks for verifying! I'll plan to merge and get a major version released with this once the latest Xcode is stable... I've got the builds mostly green, but they're inconsistent because of the Xcode betas I think. |
Is your feature request related to a problem? Please describe.
When using Swift Testing in Swift 6, trying to do an
#expect(throws: XMLDeserializationError.***) {}
fails to compile due to a requirement of Error types to be equatable using the#expect
macro, which I assume is needed for enums with associated values (since I have not seem this problem crop us when I have used it without enum associated values).Describe the solution you'd like
I'd like equatable to be added for the errors enums
Describe alternatives you've considered
For now I am commenting out my testing in those areas where I am expecting errors thrown.
Additional context
The text was updated successfully, but these errors were encountered: