[swift-corelibs-dev] Getting tests to work in xcode for foundation.
Dan Tugendraich
tugendraich at ustwo.com
Tue Sep 6 06:44:47 CDT 2016
Hey Brian,
thank you for a quick answer. I’ll try to post a radar to get this working.
That sentence you’re asking about is actually phrased incorrectly by me. Xcode isn’t prompting me to adda new test target, but if I want something to be shown in the test navigator I have to add a new test target myself.
I’ll post a radar and see where that gets us.
Thank you again.
Dan Tugendraich
<http://www.ustwo.com/>
Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
+46 (0) 40 330 480 <http://www.ustwo.com/>
> 6 sep. 2016 kl. 12:15 skrev Brian Gesiak <modocache at gmail.com>:
>
> Dan,
>
> Unfortunately, the method that Xcode uses to display tests in the test navigator is private. We are unable to implement that functionality in swift-corelibs-xctest. If you'd like to see this working, please file an Apple Radar that asks the Developer Tools team to document how this system works. Until then, you won't see any tests or their results in Xcode's test navigator. :(
>
> Instead, you'll need to check the test output printed to stdout. If you open the console in Xcode, you should see the output from each of the tests, including whether they passed or failed. That should tell you which test is failing,
>
> Can you explain what you mean by "[the test navigator in Xcode] wants me to add a new target"? Is Xcode prompting you to add a unit test target?
>
> - Brian Gesiak
>
>
>
> On Tue, Sep 6, 2016 at 5:14 AM -0400, "Dan Tugendraich via swift-corelibs-dev" <swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>> wrote:
>
> I have performed all the getting started steps in; https://github.com/apple/swift-corelibs-foundation/blob/swift-3.0-branch/Docs/GettingStarted.md <https://github.com/apple/swift-corelibs-foundation/blob/swift-3.0-branch/Docs/GettingStarted.md>
> Everything seems to be working fine, I can build the SwiftFoundation target and I can run the TestFoundation target. In the console I can see tests are being run. One of the tests are failing in the test-suite. But I have no way of checking which test and why because the test navigator window in Xcode is empty. It wants me to add a new target, but I want it to show the already existing test target ”TestFoundation”. Any ideas on how to achieve this?
> Dan Tugendraich
>
> <ustwo_dad_navy.png> <http://www.ustwo.com/>
>
>
> Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
> +46 (0) 40 330 480 <http://www.ustwo.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160906/bb763175/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ustwo_dad_navy.png
Type: image/png
Size: 4377 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160906/bb763175/attachment.png>
More information about the swift-corelibs-dev
mailing list