Skip to content

[DNM] Testing swiftpm-testing-helper tool discovery for tests on Darwin platforms #7773

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

xedin
Copy link
Contributor

@xedin xedin commented Jul 14, 2024

Testing some changes to #7766

  • Introduce swiftpm-testing-helper and install it into toolchain
  • Use SwiftSDK rootpaths to discover the tool while running tests - it would either be in .build/<config> if it's a local build or in usr/libexec/swift/pm if it's an installed toolchain.

grynspan and others added 11 commits July 12, 2024 08:00
This PR refactors the previously-experimental Swift Testing support logic so
that only a single build product is produced when using both XCTest and Swift
Testing, and detection of Swift Testing usage is no longer needed at compile
time.

On macOS, Xcode 16 is responsible for hosting Swift Testing content, so
additional changes may be needed in Xcode to support this refactoring. Such
changes are beyond the purview of the Swift open source project.
Since the xctest and swift-testing are being unified into one product
we need an additional tool (just like `swiftpm-xctest-helper`) to load
and run swift-testing tests from the unified bundle.
@grynspan
Copy link
Contributor

Closed as we've cherry-picked it to my PR, #7766.

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