Skip to content
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 #39

Merged
merged 11 commits into from
Jul 22, 2024
Merged

Add support for Swift Testing #39

merged 11 commits into from
Jul 22, 2024

Conversation

stephencelis
Copy link
Member

Makes it so TestClock and UnimplementedClock both report failures to the new Swift Testing framework.

@stephencelis stephencelis requested a review from mbrandonw July 11, 2024 00:00
@@ -101,17 +101,17 @@
}

public var now: Instant {
XCTFail("Unimplemented: \(self.name).now")
reportIssue("Unimplemented: \(self.name).now")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we could pass the proper file-line source context here, but:

  1. We need to pass them into the initializer.
  2. We need to update the .unimplemented static to be a function. While this is technically a breaking change, .unimplemented only recently started working in Swift 6 beta since any Clock did not support it, so it might be an OK breaking change to make.

@stephencelis stephencelis merged commit eb64eac into main Jul 22, 2024
4 checks passed
@stephencelis stephencelis deleted the swift-testing branch July 22, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants