Skip to content

Commit

Permalink
Merge pull request #36 from willyweather/framework
Browse files Browse the repository at this point in the history
Adds iOS framework for use with Carthage
  • Loading branch information
dstnbrkr authored Nov 4, 2016
2 parents 2cc90dd + ec93b10 commit 055417f
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 20 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,28 @@ NSURLSessionDataTask *task = [[NSURLSession sharedSession] dataTaskWithRequest:r
// previously recorded response.
```

## How to get started
## Installation
### [Carthage](https://github.com/Carthage/Carthage)

Add the following to your Cartfile:

```
github "dstnbrkr/VCRURLConnection"
```

Then run `$ carthage update`.

Follow the current instructions in [Carthage's README](https://github.com/Carthage/Carthage)
for up to date installation instructions.

### Manual
- [Download VCRURLConnection](https://github.com/dstnbrkr/VCRURLConnection/zipball/master) and try out the included example app
- Include the files in the VCRURLConnection folder in your test target

### Getting Started
- Run your tests once to record all HTTP interactions
- Copy the recorded json file (the file whose path is returned by `[VCR save]`) into your project
- Subsequent test runs will use the recorded HTTP interactions instead of the network

- All recordings are stored in a single JSON file, which you can edit by hand

## License
Expand Down
Loading

0 comments on commit 055417f

Please sign in to comment.