問題描述
我對 iOS 開發還比較陌生,而且對于任何類型的測試(除了編譯、運行和檢查你想到的任何東西)都完全陌生.
I'm still relatively new to iOS development and also an absolute stranger to any kind of testing that is not compile, run, and check whatever comes to your mind.
這顯然是任何開發人員個人資料中的一個弱點,我決定克服它,因為有趣的、真實的項目即將到來.
This is obviously a weakness on any developer's profile and I'm decided to get ride of it now that interesting, real projects are coming my way.
在我尋求盡快(并且很好地)從 0 到 100 的最佳方法的過程中,我來到專業社區尋求您的反饋.
In my quest to look for the best approach to go from 0 to 100 as soon (and well) as possible I'm coming to the specialized community to get your feedback.
同時,我正在尋求您的建議,我還進入亞馬遜尋找關于該主題的好評書籍和谷歌獲得其余的.我只是來這里收集那些愿意抽出時間的人的反饋,這樣我就可以通過一個很好的建議中獎并更好地計劃我的學習策略.
At the same time I'm asking for your tips I'm also getting into Amazon to look for well-reviewed books on the subject and Google to get the rest. I'm just coming here to gather the feedback of those willing to spare a minute or to so I can probably hit jackpot with a great advise and better plan my learning strategy.
推薦答案
沒錯.對于我的工作來說,測試和測試驅動開發是必不可少的.
Thats right. For my job testing and test driven development is indispensable.
我經常使用 Java 和 JUnit,但對于 Objective-C 和 XCode,我認為這個截屏視頻是一個很好的開始:http://qualitycoding.org/objective-c-tdd/
I often use Java and JUnit, but for Objective-C and XCode I think this screencast is a very good start: http://qualitycoding.org/objective-c-tdd/
自從我觀看此截屏視頻后,我使用 OCHamcrest 和 OCMockito (在這個截屏視頻中都有解釋)以及 SenTestingKitAsync 用于測試異步函數.
Since I watch this screencast I use OCHamcrest and OCMockito (both explaind in this screencast) as well as SenTestingKitAsync for testing asynchronous functions.
我認為 清潔代碼手冊每個開發人員都必須擁有.有一章是關于測試的.
I think the Clean Code book is a must have for every developer. There is a chapter about testing.
這篇關于iOS 項目的單元測試的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!