7 posts tagged with URLMock
We’ve been discussing URLMock a lot recently. We introduced the library and provided some use cases for it. Later, we discussed how we used NSProxy to build the message counting system URLMock uses for testing. That’s all great, but how does URLMock actually work?
Testing networking code is hard. The web service you’re connecting to can fail in myriad ways, from basic networking errors to malformed responses. All but the simplest APIs return a wide variety of data that your app has to handle correctly. Sometimes APIs can be so complex that it’s hard to verify that you’re calling things in the right order, much less sending appropriate parameters and handling responses correctly.