Re: [swift-corelibs-dev] Internal Tests

2016-07-08 Thread Tony Parker via swift-corelibs-dev
swift-corelibs-dev > Sent by: swift-corelibs-dev-boun...@swift.org > <mailto:swift-corelibs-dev-boun...@swift.org> > Date: 03/15/2016 08:42PM > Cc: Swift corelibs dev <mailto:swift-corelibs-dev@swift.org>> > Subject: Re: [swift-corelibs-dev] Internal Test

Re: [swift-corelibs-dev] Internal Tests

2016-07-08 Thread Pushkar N Kulkarni via swift-corelibs-dev
@testable doesn't work with Foundation. I get this build error:TestFoundation/TestNSURLSession.swift:17:22: error: module 'Foundation' was not compiled for testing    @testable import FoundationIs there an equivalent for Xcode's "Enable Testability" on Linux?Pushkar N Kulkarni, IBM RuntimesSimplici

Re: [swift-corelibs-dev] Internal Tests

2016-03-15 Thread Tony Parker via swift-corelibs-dev
Using @testable makes sense to me. Let's try it out. - Tony > On Mar 15, 2016, at 7:54 AM, Robert Stephen Thompson via swift-corelibs-dev > wrote: > > If it doesn’t use it on Linux, it’s because I was mostly running tests in > Xcode heh, and didn’t end up needing it in the end. On Linux, of

Re: [swift-corelibs-dev] Internal Tests

2016-03-15 Thread Robert Stephen Thompson via swift-corelibs-dev
If it doesn’t use it on Linux, it’s because I was mostly running tests in Xcode heh, and didn’t end up needing it in the end. On Linux, of course, I think you’d want @testable import Foundation. I’m not an Apple guy, though, I just happen to be the guy who wrote TestNSXMLDocument.swift! So if th

[swift-corelibs-dev] Internal Tests

2016-03-15 Thread Daniel Eggert via swift-corelibs-dev
Is it ok to use @testable import SwiftFoundation in tests? I'd like to test some internal code. TestNSXMLDocument.swift uses this, but not on Linux. What's the reason for this? /Daniel ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.or