# lausobo/Nocilla

Testing HTTP requests has never been easier. Nocilla: Stunning HTTP stubbing for iOS and Mac OS X.

Repository: https://github.com/lausobo/Nocilla
Canonical: https://ross.abutalabs.com/products/nocilla
Homepage: https://twitter.com/luisobo
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2023-04-06T08:28:46+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5111, "days_push": 1245, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1827, forks 171 (observed 2026-08-28T04:05:41.546554+00:00)

## What it is
Nocilla is an Objective-C library for stubbing HTTP and HTTPS requests in iOS and macOS unit tests, inspired by WebMock. It intercepts requests via NSURLProtocol and offers a readable DSL for matching requests by URL, headers, body, and regular expressions.

## Use cases
- stub http requests in ios unit tests
- mock https api responses in objective-c tests
- test nsurlsession requests with fake responses
- simulate network errors in ios tests
- match requests with regular expressions in tests

## When to choose
- you write Objective-C or Swift unit tests for iOS/macOS apps that make HTTP requests
- you want a WebMock-style DSL for stubbing NSURLConnection, NSURLSession, or ASIHTTPRequest
- you need to simulate network errors or regex-matched request stubs

## When to avoid
- you need actively maintained tooling with modern Swift-first APIs
- you test Swift code with newer frameworks like URLSession async/await that may not be covered
- your project doesn't use CocoaPods or Objective-C

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, mocking, http-client
- domain: testing, mobile-development, developer-tools
- platform: c
- tags: http-stubbing, nsurlprotocol, unit-testing, objective-c, cocoapods, ios, macos

## Member repositories
- lausobo/Nocilla (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.546554+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:25.593857+00:00, confidence not recorded.
  - readme: https://github.com/lausobo/Nocilla (fetched 2026-08-28T04:05:41.546554+00:00, sha e0bde652a2b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
