Xcode 5 中单元测试的使用 [英] Use of Unit Test in Xcode 5

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

问题描述

我正在编写我的第一个更大的 iOS 项目,我想尽可能多地使用 Xcode 5.现在我想使用测试,但我以前从未做过.

I am writing my first bigger iOS project and I want to use as much of Xcode 5 as possible. Now I want to use testing but I have never done it before.

我的项目使用了 Views 和动态 `TableViews.我如何在代码中实现测试,使其有意义?

My project uses come Views and dynamic `TableViews. How could I implement the test in the code, so that it makes sense?

推荐答案

请先观看 WWDC '13 session 409 - 在 Xcode 5 中测试.这是一个非常好的起点.

Please start by watching WWDC '13 session 409 - Testing in Xcode 5. It's a very good starting point.

接下来,如果您对自己的单元测试方法没有信心,我建议您阅读 测试驱动的 iOS 开发",作者 Graham Lee.

Next, if you're not feeling confident of your approach to unit testing, I'd recommend reading "Test-Driven iOS Development" by Graham Lee.

现在,请记住单元测试测试功能的单个单元",不包括性能、UI 交互和整个系统集成.

For now, remember that a unit test tests single "unit" of functionality and does not cover performance, UI interaction and whole system integration.

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

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