-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Tests: Convert StaticBinaryLibrary Test to Swift Testing #8685
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
base: main
Are you sure you want to change the base?
Conversation
""") | ||
} | ||
} when: { | ||
ProcessInfo.hostOperatingSystem == .windows |
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.
Question: given the whole test has issue(s) on Windows, isn't using the .disabled(if: ProcessInfo.hostOperatingSystem == .windows)
trait more idiomatic here? Or just running the test on Windows provides some value?
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.
When the issue is fixed on Windows, this will hopefully give us signal to fix the test, by removing the withKnownIssue
:)
@swift-ci test |
@swift-ci test self hosted windows |
When SwiftPM exeuctes tests using the native build system, the bundle path was failing on MacOS as the `Bundle.allBundles` did not contain the `.xctest` bundle. If we fail to find the .xctest bundle, we inspect the command line argument for the `--test-bundle-path` argument and contruct the macOS bundle root based on the argument value. In addition, convert the StaticBinaryLibraryTests to Swift Testing to validate the logic works.
93a3ba9
to
2082a88
Compare
@swift-ci test |
When SwiftPM executes tests using the native build system, the bundle path was failing on MacOS as the
Bundle.allBundles
did not contain the.xctest
bundle.If we fail to find the .xctest bundle, we inspect the command line argument for the
--test-bundle-path
argument and construct the macOS bundle root based on the argument value.In addition, convert the StaticBinaryLibraryTests to Swift Testing to validate the logic works.