开发者

Testing iPhone view controllers: where to start?

开发者 https://www.devze.com 2023-03-05 18:22 出处:网络
While developing an app I came to a point when I realized that I want to test my view controllers (and other objects as well) \"outside\" of the app. I\'ve found a good blog post on testing view contr

While developing an app I came to a point when I realized that I want to test my view controllers (and other objects as well) "outside" of the app. I've found a good blog post on testing view controllers, however, sadly enough, I'm not familiar with any kind of software testing at all. So almost everything written there is a bit confusing. I'm looking for a good place to start and here are my questions:

  1. I suppose it would be more useful to read something general on testing. What would you recommend?
  2. What about iOS specific info? Tutorials on OCUnit (which is now integrated in Xcode), OCMock (which was mentioned in开发者_Go百科 that blog post), UIAutomation?
  3. Will I be able to "run" a separate view controller like an independent app (to tap buttons, type in text fields, etc.) without explicitly making such app? What tool may I use for that purpose?
  4. What is your personal approach to this?


I would greatly recommend this resource as it touches on most of the questions that you have: http://jojitsoriano.wordpress.com/2011/06/03/references-on-unit-testing-ui-automation-for-ios-applications/

Hope that helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消