问题描述
我对 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 项目的单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!