Update README.md

This commit is contained in:
Mattt Thompson 2013-05-16 09:29:11 -07:00
parent 89ac8bfa67
commit 76950dab03

View file

@ -166,14 +166,20 @@ To set a compiler flag in Xcode, go to your active target and select the "Build
AFNetworking includes a suite of unit tests within the Tests subdirectory. In order to run the unit tests, you must install the testing dependencies via CocoaPods. To do so:
1. `gem install cocoapods` # If necessary
1. `cd Tests`
1. `pod install`
$ gem install cocoapods # If necessary
$ cd Tests
$ pod install
Once CocoaPods has finished the installation, you can execute the test suite via the 'iOS Tests' and 'OS X Tests' schemes within Xcode. If you wish to execute the tests from the command line or within a continuous integration environment, you will need to install [xctool](https://github.com/facebook/xctool). The recommended installation method is [Homebrew](http://mxcl.github.io/homebrew/). To install the commandline testing support via Homebrew:
Once CocoaPods has finished the installation, you can execute the test suite via the 'iOS Tests' and 'OS X Tests' schemes within Xcode.
1. `brew update`
1. `brew install xctool --HEAD`
### Using xctool
If you wish to execute the tests from the command line or within a continuous integration environment, you will need to install [xctool](https://github.com/facebook/xctool). The recommended installation method is [Homebrew](http://mxcl.github.io/homebrew/).
To install the commandline testing support via Homebrew:
$ brew update
$ brew install xctool --HEAD
Once xctool is installed, you can execute the suite via `rake test`.
@ -200,4 +206,3 @@ Follow AFNetworking on Twitter ([@AFNetworking](https://twitter.com/AFNetworking
## License
AFNetworking is available under the MIT license. See the LICENSE file for more info.