iOS open source library used to tests apps with fake network data and custom response time, response code and headers
OHHTTPStubs is a library designed to stub your network requests very easily. It can help you:
- test your apps with fake network data (stubbed from file) and simulate slow networks, to check your application behavior in bad network conditions
- write unit tests that use fake network data from
your fixtures. It works with
NSURLConnection,NSURLSession,AFNetworking,Alamofireor any networking framework that use Cocoa's URL Loading System.