Skip to content

Commit

Permalink
Editing section about Unit Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Sep 26, 2013
1 parent 17b5dbb commit 45c7a9a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Choose AFNetworking for your next project, or migrate over your existing project
- [Download AFNetworking](https://github.com/AFNetworking/AFNetworking/zipball/2.0) and try out the included Mac and iPhone example apps
- Read the ["Getting Started" guide](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking), [FAQ](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-FAQ), or [other articles in the wiki](https://github.com/AFNetworking/AFNetworking/wiki)
- Check out the [complete documentation](http://afnetworking.github.com/AFNetworking/) for a comprehensive look at the APIs available in AFNetworking
- Watch the [NSScreencast episode about AFNetworking](http://nsscreencast.com/episodes/6-afnetworking) for a quick introduction to how to use it in your application
- Questions? [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking) is the best place to find answers

### Installation with CocoaPods
Expand Down Expand Up @@ -314,20 +313,14 @@ AFNetworking includes a suite of unit tests within the Tests subdirectory. In or

Once CocoaPods has finished the installation, you can execute the test suite via the 'iOS Tests' and 'OS X Tests' schemes within Xcode.

### Test Logging

By default, the unit tests do not emit any output during execution. For debugging purposes, it can be useful to enable logging of the requests and responses. Logging support is provided by the [AFHTTPRequestOperationLogger](https://github.com/AFNetworking/AFHTTPRequestOperationLogger) extension, which is installed via CocoaPods into the test targets. To enable logging, edit the test Scheme and add an environment variable named `AFTestsLoggingEnabled` with a value of `YES`.

### 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:
Tests can be run from the command line or within a continuous integration environment with [`xctool`](https://github.com/facebook/xctool), which can be installed with [Homebrew](http://brew.sh):

$ brew update
$ brew install xctool --HEAD

Once xctool is installed, you can execute the suite via `rake test`.
Once `xctool` is installed, you can execute the suite via `rake test`.

## Credits

Expand All @@ -345,6 +338,10 @@ Follow AFNetworking on Twitter ([@AFNetworking](https://twitter.com/AFNetworking

- [Mattt Thompson](http://github.com/mattt) ([@mattt](https://twitter.com/mattt))

## One More Thing...

**AFNetworking: the Definitive Guide** written by Mattt Thompson and published by [O'Reilly](http://oreilly.com), will be available late 2013 / early 2014. [Sign up here to be notified about updates](http://eepurl.com/Flnvn).

## License

AFNetworking is available under the MIT license. See the LICENSE file for more info.

0 comments on commit 45c7a9a

Please sign in to comment.