There are quite a few open source cocoa touch libraries and frameworks.
OCMock, the winner by default when it comes to mocking in objective-c. It is actually a really decent mocking framework with all the elements you would come to expect (mocks, stubs and partial mocks). Setting it up can be a bit of a pain, fortunately Colin Barret has figured that out for us already.
Google Toolbox, augments the SenTestingKit (OCUnit) providing more assertions, log tracking, binding testing and more. A very visual tutorial on setting up Google Toolbox.
GHUnit, I am still spending time with this one. Seems promising so far. Key features are running individual tests, running tests from the command line (easier) and testing macros.
UISpec is a test automation tool. It’s key feature is that it can run automation tests within the simulator (OCUnit must deploy to the iPhone). Documentation is pretty sparse.
ASIHTTPRequest is a library that wraps the CFNetwork API, handling quite a bit of the grunt work for you. Great for working with RESTful services.
json-framework, another key element of working with RESTful services. JSON is lighter weight and uses key-value pairs to represent data. This plays very nicely with the KVC techniques you should be using in Cocoa.
SpeedLimit, this is a great utility for simulating the network speeds you are likely to have on the iPhone.
0 comments:
Post a Comment