<font face="Verdana,Arial,Helvetica,sans-serif" size="2"><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;">@testable doesn't work with Foundation. I get this build error:</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"><br></div><div><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><span style="font-variant-ligatures: no-common-ligatures">TestFoundation/TestNSURLSession.swift:17:22: error: module 'Foundation' was not compiled for testing</span></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><span style="font-variant-ligatures: no-common-ligatures"> @testable import Foundation</span></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><span style="font-variant-ligatures: no-common-ligatures"><br></span></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><br></p><font size="2"><font><font><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><font face="Verdana, Arial, Helvetica, sans-serif">Is there an equivalent for Xcode's "Enable Testability" on Linux?</font></font></div><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><font face="Verdana, Arial, Helvetica, sans-serif"><br></font></font></div><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><font face="Verdana, Arial, Helvetica, sans-serif">Pushkar N Kulkarni,</font></font></div>
<div dir="ltr" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">IBM Runtimes</font></div><div dir="ltr" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"><font face="serif, Times New Roman, Times, serif"><i>Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-family: Arial; font-size: 10.5pt; font-style: normal;"><br></div></div></div></div></font></font></font></div><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" color="#000000" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"><font color="#990099"><a href="mailto:-----swift-corelibs-dev-bounces@swift.org" target="_blank">-----swift-corelibs-dev-bounces@swift.org</a> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Robert Stephen Thompson <<a href="mailto:robert.thompson@willowtreeapps.com" target="_blank">robert.thompson@willowtreeapps.com</a>><br>From: Tony Parker via swift-corelibs-dev <swift-corelibs-dev@swift.org><br>Sent by: <a href="mailto:swift-corelibs-dev-bounces@swift.org" target="_blank">swift-corelibs-dev-bounces@swift.org</a><br>Date: 03/15/2016 08:42PM<br>Cc: Swift corelibs dev <<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>><br>Subject: Re: [swift-corelibs-dev] Internal Tests<br><br><!--Notes ACF
<meta http-equiv="content-type" content="text/html; charset=utf8">--><div>Using @testable makes sense to me. Let's try it out. <br><br>- Tony</div><div><br>On Mar 15, 2016, at 7:54 AM, Robert Stephen Thompson via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><!--Notes ACF
<meta http-equiv="Content-Type" content="text/html charset=utf8">-->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 there is actually a reason not to use it, I’m not aware of it, but don’t necessarily take my word for it!<div class=""><br class=""></div><div class="">Thanks,</div><div class="">Robert Thompson</div><div class=""><div class="">Software Engineer</div><div class="">WillowTree, Inc.®</div><div class=""><a href="http://willowtreeapps.com" target="_blank" class="">willowtreeapps.com</a></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Mar 15, 2016, at 8:02 AM, Daniel Eggert via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Is it ok to use<br class=""> @testable import SwiftFoundation<br class="">in tests? I'd like to test some internal code.<br class=""><br class="">TestNSXMLDocument.swift uses this, but not on Linux. What's the reason for this?<br class=""><br class="">/Daniel<br class=""><br class="">_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-corelibs-dev mailing list</span><br><span><a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></span><br></div></blockquote><div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>swift-corelibs-dev mailing list<br><a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br></font></div></swift-corelibs-dev@swift.org></div></div></font></font><BR>