<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 12, 2017, at 11:29 PM, Alwyn Concessao &lt;<a href="mailto:alsav196@yahoo.com" class="">alsav196@yahoo.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class=""><div class=""></div>
            <div class="">Okay.I see a couple of Swift files and .gyb files inside test/stdlib.I've made changes to the RangeReplaceableCollection protocol of the Swift stdlib.How can I write unit tests for that?Can I generate an Xcode project for the unit test files?</div></div></div></div></blockquote><div><br class=""></div>You can run unit tests by using build-script for example,</div><div><br class=""></div><div>./utils/build-script -T</div><div><br class=""></div><div>You can also run lit.py directly to only run selected tests. See docs/Testing.md for details.</div><div><br class=""></div><div>Slava</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class=""><div class=""><br class=""></div><div class="">Thank you.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Alwyn</div><div class=""><br class=""></div>
            
            <div id="yahoo_quoted_6124849537" class="yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;" class="">
                    
                    <div class="">
                        On Wednesday, 13 September 2017, 7:39:08 AM IST, Slava Pestov &lt;<a href="mailto:spestov@apple.com" class="">spestov@apple.com</a>&gt; wrote:
                    </div>
                    <div class=""><br class=""></div>
                    <div class=""><br class=""></div>
                    <div class=""><div id="yiv7840453210" class=""><div class="">Take a look at test/stdlib/. Unit tests use the SwiftUnittest framework, you should be able to get started by looking at existing examples.<div class="yiv7840453210"><br clear="none" class="yiv7840453210"></div><div class="yiv7840453210">Slava</div><div class="yiv7840453210"><br clear="none" class="yiv7840453210"><div class=""><blockquote class="yiv7840453210" type="cite"><div class="yiv7840453210yqt3047285853" id="yiv7840453210yqt02434"><div class="yiv7840453210">On Sep 12, 2017, at 5:35 AM, Alwyn Concessao via swift-dev &lt;<a rel="nofollow" shape="rect" class="yiv7840453210" ymailto="mailto:swift-dev@swift.org" target="_blank" href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>&gt; wrote:</div><br clear="none" class="yiv7840453210Apple-interchange-newline"><div class="yiv7840453210"><div class="yiv7840453210"><div class="yiv7840453210" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div class="yiv7840453210">Hey Swift devs,</div><div class="yiv7840453210"><br clear="none" class="yiv7840453210"></div><div class="yiv7840453210">So I have been able to clone the Swift project from Github and built the project successfully.I've just added some code to the Swift std library and I want to test the added functionality by writing some unit tests.But I'm stuck with going about doing this.How can I write unit tests for the Swift standard library?</div><div class="yiv7840453210"><br clear="none" class="yiv7840453210"></div><div class="yiv7840453210">Thank you!</div><div class="yiv7840453210"><br clear="none" class="yiv7840453210"></div><div class="yiv7840453210">Regards,</div><div class="yiv7840453210">Alwyn</div></div></div>_______________________________________________<br clear="none" class="yiv7840453210">swift-dev mailing list<br clear="none" class="yiv7840453210"><a rel="nofollow" shape="rect" class="yiv7840453210" ymailto="mailto:swift-dev@swift.org" target="_blank" href="mailto:swift-dev@swift.org">swift-dev@swift.org</a><br clear="none" class="yiv7840453210"><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a><br clear="none" class="yiv7840453210"></div></div></blockquote></div><br clear="none" class="yiv7840453210"></div></div></div></div>
                </div>
            </div></div></div></div></blockquote></div><br class=""></body></html>