Use of Unit Test in Xcode 5

左心房为你撑大大i 提交于 2019-12-03 11:53:05

问题


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.

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


回答1:


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

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

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



来源:https://stackoverflow.com/questions/19030858/use-of-unit-test-in-xcode-5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!