[swift-build-dev] How to run SPM Tests from generated Xcode proj?

Ankit Agarwal ankit at ankit.im
Fri Dec 16 01:22:07 CST 2016


Hi,

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 at 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.
>
> 177 Tests fail.
>
> Sample error:
>
> ../swift-package-manager/Tests/FunctionalTests/ClangModuleTests.swift:
> test failure:
> -[ClangModulesTestCase testCUsingCDep()] failed: failed - `swift build -c
> Debug' failed:
>
>
>
>
>
> _______________________________________________
> swift-build-dev mailing list
> swift-build-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev
>



-- 
Ankit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20161216/b6e52ded/attachment.html>


More information about the swift-build-dev mailing list