Nocilla
Nocilla copied to clipboard
Testing HTTP requests has never been easier. Nocilla: Stunning HTTP stubbing for iOS and Mac OS X.
This adds annotations necessary for normal usage on Swift 3. Without these, code must deal with null values that Nocilla never actually returns, i.e. lots of `?` interspersed in Nocilla...
At this point, when Nocilla is enabled, any HTTP request will be handled by Nocilla and won't hit the outside world. This is the desired behavior for unit tests but...
Since `NSURLSession` will execute the requests on a background thread, we can end up in the situation when the `tearDown` of a previous unit test stops Nocilla since it no...
Making sure that the correct implementations are restored to `NSURLSession` and `LSNSURLSessionHook`. Using `method_exchangeImplementations:` mixes up the `IMP` for both classes to a point where Nocilla no longer responds to...
Due to issues with bridging Foundation data types and nullability annotation, using `Nocilla` from a Swift 3 has become extremely cumbersome. Is there any chance that this library is going...
This PR Adds an LSURLMatcher class, and updates LSStubRequest to use it instead of the regular LSStringMatcher. The motivation for this is that LSStringMatcher is not content aware, and so...
Avoid conflicts with https://github.com/erikdoe/ocmock/blob/5d9028ff40fe2bbe0ddc710b423cfc78fd5a006c/Source/OCMock/OCMStubRecorder.h#L23
so, created an alias that OCMock is not touching Based on https://github.com/moneytree/Nocilla/commit/f8291740558f88abd8fee5250977b3cb3fcd610c
I have a multiple test set, one of them uses nocilla so I execute LSNocilla.sharedInstance().start() when it begin and stop it at the end, but when the other test that...
The following line parsed and worked fine using Nocilla (0.11.0) in Swift 2: ```` stubRequest("POST", "\(baseURL)/hello") .withHeaders([ "content-type": "application/json", "USER_ID": "[email protected]" ]) .withBody(try! JSON(["body"]).serialize()) ```` How do I spell this...