-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?
- Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands,
swift build,swift test,swift packageetc.
Description
swift-test is using the old native build path layout to find the xctest bundle when used with --build-system swiftbuild
Expected behavior
swift-test should run the tests.
Actual behavior
I'm getting an error:
swiftpm_testing_helper/Entrypoint.swift:29: Fatal error: Failed to open test bundle at path /Users/dschaefer/swift/douglib/.build/arm64-apple-macosx/debug/douglibPackageTests.xctest/Contents/MacOS/douglibPackageTests: dlopen(/Users/dschaefer/swift/douglib/.build/arm64-apple-macosx/debug/douglibPackageTests.xctest/Contents/MacOS/douglibPackageTests, 0x0101)
it's actually at the following with swiftbuild.
.build/arm64-apple-macosx/Products/Debug/douglibPackageTests.xctest/Contents/MacOS/douglibPackageTests
Steps to reproduce
Run swift test --build-system swiftbuild, or swift-test until the initial PR lands.
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version ; uname -a)
No response