适用于iOS的项目单元测试 [英] Unit testing for iOS projects

查看:129
本文介绍了适用于iOS的项目单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还是比较新的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和X $ C $三我觉得这截屏是一个很好的开始:的 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 (在这个截屏都explaind)以及 SenTestingKitAsync 测试异步功能。

Since I watch this screencast I use OCHamcrest and OCMockito (both explaind in this screencast) as well as SenTestingKitAsync for testing asynchronous functions.

我觉得清洁code书是一个必须为每一个开发商。有一个关于测试的章节。

I think the Clean Code book is a must have for every developer. There is a chapter about testing.

这篇关于适用于iOS的项目单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆