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
Powerful Website Security | Continuous Web Threat Platform Icon
Powerful Website Security | Continuous Web Threat Platform

Continuously detect, prioritize, and validate web threats to quickly mitigate security, privacy, and compliance risks.

Reflectiz is a comprehensive web exposure management platform that helps organizations proactively identify, monitor, and mitigate security, privacy, and compliance risks across their online environments. Designed to address the growing complexity of modern websites, Reflectiz provides full visibility and control over first, third, and even fourth-party components, such as scripts, trackers, and open-source libraries that often evade traditional security tools.
Learn More
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