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, and write unit tests that use fake network data from your fixtures. OHHTTPStubs headers are fully documented using Appledoc-like / Headerdoc-like comments in the header files. Instead of writing the content of the stubs you want to use manually, you can use tools like SWHttpTrafficRecorder to record network requests into files. This way you can later use those files as stub responses. OHHTTPStubs is split into subspecs so that when using Cocoapods, you can get only what you need, no more, no less. OHHTTPStubs supports Swift 2.2 (Xcode 7), Swift 2.3 (Xcode 8), Swift 3.0 (Xcode 8+) and Swift 3.1 (Xcode 8.3+).

Features

  • Use OHHTTPStubs in your unit tests
  • Automatic loading
  • Write unit tests that normally would perform network requests
  • OHHTTPStubs is automatically loaded and installed (at the time the library is loaded in memory)
  • OHHTTPStubs can be used on apps submitted on the App Store
  • Test your apps with fake network data and custom response time

Project Samples

Project Activity

See All Activity >

Categories

Networking, Libraries

License

MIT License

Follow OHHTTPStubs

OHHTTPStubs Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OHHTTPStubs!

Additional Project Details

Programming Language

Objective C

Related Categories

Objective C Networking Software, Objective C Libraries

Registered

2021-11-10