Skip to content

Setup and run RestKit XCTests

ptclarke edited this page Jun 25, 2015 · 2 revisions

Useful documentation links

XE Mobile 2011

RestKit Wiki

Steps

Checkout fork to be tested to a local workspace, install pods and build for testing.

This assumes you have Cocoapods installed. From a terminal session change to the workspace directory and: pod install

Note: As at 2015-06-25 with the feature/afnetworking-2.0 fork there are mismatched dependancies on AFN, the podfile.lock and RestKit.podspec file must be edited and all references to AFN versions changed to '2.4.0' otherwise the test target will not build.

It is also recommended that you checkout the RestKit master branch to a separate workspace and install pods to that workspace so you can run the XCTests against the master branch, confirm your setup is correct and establish a baseline.

Build RestKit for testing

Xcode: Product/ Build for testing

Install and start Sinatra server

From a terminal session: sudo gem install bundler bundle install

To start the server: rake server

Run the tests

Xcode: Product / test The test target will only execute against a simulator. As at 2015-06-25 886 tests execute for iOS and on a modest Mac Mini they take about 434 seconds to complete.

Clone this wiki locally