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:
- I suppose it would be more useful to read something general on testing. What would you recommend?
- What about iOS specific info? Tutorials on OCUnit (which is now integrated in Xcode), OCMock (which was mentioned in开发者_Go百科 that blog post), UIAutomation?
- 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?
- 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!
精彩评论