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-13136] swift test --filter doesn't work in snapshot #6833

Closed
swift-ci opened this issue Jul 2, 2020 · 2 comments
Closed

[SR-13136] swift test --filter doesn't work in snapshot #6833

swift-ci opened this issue Jul 2, 2020 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jul 2, 2020

Previous ID SR-13136
Radar None
Original Reporter cukier (JIRA User)
Type Bug
Environment

macos 10.15.4 (19E287)

swift-DEVELOPMENT-SNAPSHOT-2020-07-01-a.xctoolchain

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 95892b810a292f1d132251ac085b5ec5

Issue Description:

Steps to reproduce:

  • boot your macos 10.15.4 (19E287) machine

  • download and install the snapshot from swift.org

  • create new package called `NewPackage`

  • try to run `/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift test --filter='NewPackageTests.NewPackageTests/testExample'` command to run a single test method

expected:

Test Suite 'Selected tests' started at 2020-07-03 00:49:06.032
Test Suite 'NewPackagePackageTests.xctest' started at 2020-07-03 00:49:06.032
Test Suite 'NewPackageTests' started at 2020-07-03 00:49:06.032
Test Case '-[NewPackageTests.NewPackageTests testExample]' started.
Test Case '-[NewPackageTests.NewPackageTests testExample]' passed (0.055 seconds).
Test Suite 'NewPackageTests' passed at 2020-07-03 00:49:06.087.
         Executed 1 test, with 0 failures (0 unexpected) in 0.055 (0.055) seconds
Test Suite 'NewPackagePackageTests.xctest' passed at 2020-07-03 00:49:06.087.
         Executed 1 test, with 0 failures (0 unexpected) in 0.055 (0.055) seconds
Test Suite 'Selected tests' passed at 2020-07-03 00:49:06.087.
         Executed 1 test, with 0 failures (0 unexpected) in 0.055 (0.056) seconds 

What happened:

[6/6] Linking NewPackagePackageTests
error: signalled(6): /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2020-07-01-a.xctoolchain/usr/libexec/swift/pm/swiftpm-xctest-helper /Users/cukier/Desktop/NewPackage/.build/x86_64-apple-macosx/debug/NewPackagePackageTests.xctest /var/folders/9r/3t0y3zlj2l34w2t5vsgxz_7w0000gn/T/TemporaryFile.3Jzu9d output:
    dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest
      Referenced from: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2020-07-01-a.xctoolchain/usr/libexec/swift/pm/swiftpm-xctest-helper
      Reason: image not found
   
@swift-ci
Copy link
Contributor Author

swift-ci commented Jul 3, 2020

Comment by cukr (JIRA)

running `export TOOLCHAINS=org.swift.50202007011a` and then `swift test --filter='NewPackageTests.NewPackageTests/testExample'` doesn't work either

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@grynspan grynspan transferred this issue from apple/swift Aug 20, 2023
@neonichu
Copy link
Member

This is normal, because the toolchain does not come with XCTest.

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

2 participants