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

Swift testing proof of concept #310

Closed
wants to merge 1 commit into from

Conversation

aleksproger
Copy link

  • Added dependency on swift-testing
  • Migrated BufferViewTests to swift-testing as a showcase
  • Note that swift-testing requires 5.10 toolchain to work, so the swift-foundation toolchain then should be bumped accordingly

@itingliu
Copy link
Contributor

@swift-ci please test

@@ -19,17 +19,16 @@ import TestSupport
#endif

final class BufferViewTests: XCTestCase {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is a proof of concept, could you fully adopt swift-testing for this file? For example, we should switch to using @Suite and @Testing etc with a struct and avoid using XCTestCase directly.

Comment on lines +22 to +24
func testAll() async {
await XCTestScaffold.runAllTests(hostedBy: self)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be in it's own file so other swift-testing tests can use it as well.

@parkera
Copy link
Member

parkera commented Apr 29, 2024

Thanks @aleksproger for this - we are pushing forward on this in future PRs and also working through the cyclical dependency in swift-foundation <-> swift-testing.

@parkera parkera closed this Apr 29, 2024
@parkera
Copy link
Member

parkera commented Apr 29, 2024

( #545 )

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.

None yet

4 participants