lightricks/ohhttpstubs — explained in plain English
Analysis updated 2026-08-01 · repo last pushed 2024-03-03
Feed fake data to an app during testing so it displays correctly without a live server.
Simulate server errors to verify the app shows the right error messages to users.
Test how the app behaves on slow or bad network connections.
Run automated test suites instantly and reliably without internet access.
| lightricks/ohhttpstubs | adispring/mapios8 | aonez/microsoftsurfacemacaudiofix | |
|---|---|---|---|
| Language | Objective-C | Objective-C | Objective-C |
| Last pushed | 2024-03-03 | 2014-12-11 | 2024-11-28 |
| Maintenance | Dormant | Dormant | Stale |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Install via CocoaPods, Swift Package Manager, or Carthage, no external infrastructure required.
OHHTTPStubs is a tool that lets iOS and Mac app developers test their apps using fake network responses instead of real ones. Instead of waiting for a live server to return data, the developer can tell the app to use a saved file as the response. This means tests run instantly, reliably, and without needing an internet connection. The way it works is straightforward: the developer sets up a rule that says, "If my app tries to reach this specific website address, intercept that request and give it this fake response instead." The fake response can include a saved file, a custom status code (like a success or error code), and specific headers. The developer can also simulate slow or bad network conditions to see how the app handles them. It works with most popular networking tools used in Apple app development. This is mainly used by developers and QA engineers writing automated tests for their apps. For example, if a developer is building a weather app, they could use this tool to feed the app a fake weather forecast every time the test runs, ensuring the app displays the data correctly. They could also simulate a server error to verify the app shows the right error message to the user, all without actually breaking the real server. One notable thing about the tool is how it intercepts network traffic. It hooks into Apple's underlying networking system automatically, so it works with almost any networking library built on top of it. However, the README notes a few limitations: it cannot work with background downloads managed by the operating system, it doesn't simulate the process of uploading data, and it has some issues with redirects. The project also supports multiple ways to install it, including CocoaPods, Swift Package Manager, and Carthage.
A testing tool for iOS and Mac apps that intercepts network requests and returns fake responses, so tests run instantly without needing a real server or internet connection.
Mainly Objective-C. The stack also includes Objective-C, iOS, macOS.
Dormant — no commits in 2+ years (last push 2024-03-03).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.