I am having trouble figuring out how to run the xctests from the Swift Package Manager Package itself.
Some of the tests succeed but the majority fail. Thanks!
STEPS:
Cloned SPM from github
Downloaded latest Swift Tool chain
Generated Xcode project file (Xcode 8.2)
On each target I added a global flag:
SWIFT_EXEC=/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-13-a.xctoolchain/usr/bin/swift
Run Tests for SwiftPM.
First of all make sure you have latest trunk snapshot from swift.org and
are using it:
$ export TOOLCHAINS=swift
$ xcrun --find swift
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-15-a.xctoolchain/usr/bin/swift
This will build and test swiftpm on command line:
$ Utilities/bootstrap test
If you prefer Xcode:
$ Utilities/bootstrap --generate-xcodeproj
$ open SwiftPM.xcodeproj
$ cmd + u
···
On Fri, Dec 16, 2016 at 6:19 AM, Jose Cheyo Jimenez via swift-build-dev < swift-build-dev@swift.org> wrote:
Hello,
I am having trouble figuring out how to run the xctests from the Swift
Package Manager Package itself.
Some of the tests succeed but the majority fail. Thanks!
STEPS:
Cloned SPM from github
Downloaded latest Swift Tool chain
Generated Xcode project file (Xcode 8.2)
On each target I added a global flag:
SWIFT_EXEC=/Library/Developer/Toolchains/swift-DEVELOPMENT-
SNAPSHOT-2016-12-13-a.xctoolchain/usr/bin/swift
Run Tests for SwiftPM.