Skip to content

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

@norio-nomura

Description

@norio-nomura
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions