Bond.
The biggest change in this release is the way the stubbing mechanism intercepts requests to return recorded responses. A The Stubborn Network URLProtocol
is now applied to your URLSession's configuration instead of subclassing a URLSession
. Stubs are now recorded automatically when a test doesn't have corresponding stubs. Besides that some improvements were made to give more control over the request matching of outgoing requests and available stubs.
- set The Stubborn Network URLProtocol to your URLSession instead of subclassing one
- stubs are recorded automatically (record modes are not needed any more)
- request bodies are now stored in the stubs
- allow for request matching options from
.lenient
to.strict
and anything in between - during recording successive, similar requests will now respond with the original server response instead of playing back a initially recorded response
Thanks to the members of Cocoaheads Hamburg and the iOS community for their input for this release.