I am using Swift for an iOS app, and using Alamofire to perform HTTP requests.
I want to write unit tests to cover my functions, but I'm having trouble stubbing the HTTP requests performed by Alamofire. I am using Nocilla (imported into bridging header) to try to stub my HTTP requests but it seems that the callback to my HTTP request never gets reached in the tests.
I was wondering if anyone has had any experience successfully stubbing HTTP requests for Alamofire in their test suites?
Thanks!