Possible Duplicate:
How to run and debug un开发者_C百科it tests for an iPhone application
I want to unit test my IPhone application.
What tips and practices should be followed?here is my favourite one
http://www.raywenderlich.com/3716/unit-testing-in-xcode-4-quick-start-guide
What is the best way to unit test Objective-C code?
http://paulsolt.com/2010/11/iphone-unit-testing-explained-part-1/
http://longweekendmobile.com/2011/02/23/tdd-best-practices-testing-in-ios4-with-ghunit-part-1/
http://longweekendmobile.com/2011/02/23/tdd-best-practices-testing-in-ios4-with-ghunit-part-1/
You might want to checkout Gorilla Logic’s FoneMonkey, an open source record / playback testing tool for iPhone applications: link for gorillalogic
Xcode 4 comes with everything you need: OCUnit for the unit tests - and Instrument has Automation which you might want to have a look at for GUI testing.
精彩评论