<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hm, that’s too bad. Do we just need to add a flag to Foundation’s build script?<div class=""><br class=""></div><div class="">- Tony</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 8, 2016, at 12:26 AM, Pushkar N Kulkarni &lt;<a href="mailto:pushkar.nk@in.ibm.com" class="">pushkar.nk@in.ibm.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;" class="">@testable doesn't work with Foundation. I get this build error:</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;" class=""><br class=""></div><div class=""><p style="font-family: Menlo; font-size: 14px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">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;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; @testable import Foundation</span></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;" class=""><br class=""></p><font size="2" class=""><font class=""><font class=""><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">Is there an equivalent for Xcode's "Enable Testability" on Linux?</font></font></div><div dir="ltr" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></font></div><div dir="ltr" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">Pushkar N Kulkarni,</font></font></div>
<div dir="ltr" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal;" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">IBM Runtimes</font></div><div dir="ltr" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal;" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></div><div dir="ltr" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;" class=""><font face="serif, Times New Roman, Times, serif" class=""><i class="">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;" class=""><br class=""></div></div></div></div></font></font></font></div><br class=""><br class=""><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;" class=""><font color="#990099" class=""><a href="mailto:-----swift-corelibs-dev-bounces@swift.org" target="_blank" class="">-----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;" class="">To: Robert Stephen Thompson &lt;<a href="mailto:robert.thompson@willowtreeapps.com" target="_blank" class="">robert.thompson@willowtreeapps.com</a>&gt;<br class="">From: Tony Parker via swift-corelibs-dev <swift-corelibs-dev@swift.org class=""><br class="">Sent by: <a href="mailto:swift-corelibs-dev-bounces@swift.org" target="_blank" class="">swift-corelibs-dev-bounces@swift.org</a><br class="">Date: 03/15/2016 08:42PM<br class="">Cc: Swift corelibs dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>&gt;<br class="">Subject: Re: [swift-corelibs-dev] Internal Tests<br class=""><br class=""><!--Notes ACF
<meta http-equiv="content-type" content="text/html; charset=utf8">--><div class="">Using @testable makes sense to me. Let's try it out.&nbsp;<br class=""><br class="">- Tony</div><div class=""><br class="">On Mar 15, 2016, at 7:54 AM, Robert Stephen Thompson via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><!--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 class=""><blockquote type="cite" class=""><div class="">On Mar 15, 2016, at 8:02 AM, Daniel Eggert via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Is it ok to use<br class=""> &nbsp;&nbsp;&nbsp;@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" class="">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" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">swift-corelibs-dev mailing list</span><br class=""><span class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a></span><br class=""><span class=""><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></span><br class=""></div></blockquote><div class=""><font face="Courier New,Courier,monospace" size="3" class="">_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br class=""></font></div></swift-corelibs-dev@swift.org></div></div></font></font><br class="">

</div></blockquote></div><br class=""></div></body></html>