• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • iOS單元測試和UI測試全面解析(42)

    發表于:2017-03-31來源:51CTO作者:朱先忠點擊數: 標簽:單元測試iOS
    總結 本文中已經向你提供了為你的iOS工程編寫測試的多種工具。我希望你能夠通過本教程的學習樹立起足夠的信心來測試一切! 你可以從地址 https://koeni

    總結

    本文中已經向你提供了為你的iOS工程編寫測試的多種工具。我希望你能夠通過本教程的學習樹立起足夠的信心來測試一切!

    你可以從地址https://koenig-media.raywenderlich.com/uploads/2016/12/Finished-3.zip處下載本文中的完整的示例工程源碼。

    最后,下面提供的一些資源可以供你作進一步學習測試使用:

    • 既然通過本文學習你已經學會了為你的項目編寫測試,那么你下一步要了解的應當是自動化測試相關的主題。為此,你可以首先學習蘋果官方的基于Xcode Server和xcodebuild的自動測試過程(Automating the Test Process,https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/08-automation.html#//apple_ref/doc/uid/TP40014132-CH7-SW1),以及發表在Wikipedia上的相關連載文章(https://en.wikipedia.org/wiki/Continuous_delivery),來源于ThoughtWorks網站(https://www.thoughtworks.com/continuous-delivery)上的一位資深專家的文章。
    • 使用Swift Playgrounds進行測試驅動開發(http://initwithstyle.net/2015/11/tdd-in-swift-playgrounds/)。你可以在Playgrounds環境下使用XCTestObservationCenter來運行XCTestCase單元測試。你可以在Playgrounds中開發你的工程代碼并進行測試,然后把二者都轉換成你的應用程序。
    • 來自CMD+U協會(http://www.cmduconf.com/)的教程告訴你如何使用PivotalCoreKit(https://github.com/pivotal/PivotalCoreKit)來測試watchOS應用程序。
    • 如果你已經編寫了一個應用程序,而只是沒有為它編寫測試,你可以參閱Michael Feathers的圖書《Working Effectively with Legacy Code》(https://www.amazon.com/Working-Effectively-Legacy-Michael-Feathers/dp/0131177052/ref=sr_1_1?s=books&ie=UTF8&qid=1481511568&sr=1-1),因為不包含測試的代碼往往都是遺留下來的代碼!
    • Jon Reid的高質量編碼示例編程文章(http://qualitycoding.org/tdd-sample-archives/)也是你學習測試驅動開發的極好去處。

    原文轉自:http://mobile.51cto.com/iphone-535758.htm

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>