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

[SR-6559] swift test failed to executing test by "Failure: No test bundle found at path…" #4847

Closed
norio-nomura opened this issue Dec 8, 2017 · 4 comments
Labels

Comments

@norio-nomura
Copy link
Contributor

Previous ID SR-6559
Radar rdar://problem/35942886
Original Reporter @norio-nomura
Type Bug
Status Resolved
Resolution Done
Environment

swift-4.1-DEVELOPMENT-SNAPSHOT-2017-12-07-a

Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 980d77db96f50ebaeeb47912e345faca

Issue Description:

Both on macOS and Linux.
Detailed error is printed only on macOS,

$ git clone https://github.com/jpsim/SourceKitten.git
…
$ cd SourceKitten
…
$ TOOLCHAINS=org.swift.4120171207a swift test
…
Usage: xctest [-XCTest All | <TestCaseClassName/testMethodName>] <path of unit to be tested>

Failure: No test bundle found at path `/Users/norio/github/swift-dev/SourceKitten/.build/x86_64-apple-macosx10.10/debug/YamsPackageTests.xctest`

Displaying process arguments and environment for debugging purposes:
Arguments: (
    "/Applications/Xcode.app/Contents/Developer/usr/bin/xctest",
    "/Users/norio/github/swift-dev/SourceKitten/.build/x86_64-apple-macosx10.10/debug/YamsPackageTests.xctest"
)
Environment: {
…
}

As looking error messages, swift test tried to executing wrong test bundle.
SourceKittenPackageTests.xctest is correct.

@norio-nomura
Copy link
Contributor Author

It looks #1381 introduced this issue.

@ankitspd
Copy link
Member

ankitspd commented Dec 8, 2017

@swift-ci create

@hartbit
Copy link
Collaborator

hartbit commented Dec 10, 2017

I opened a PR to fix this: https://github.com/apple/swift-package-manager/pull/1413

@norio-nomura
Copy link
Contributor Author

I confirmed that the PR resolves my issue with testing SourceKitten.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants