kylef/Mockingjay
An elegant library for stubbing HTTP requests with ease in Swift observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4242
- days_rel: n/a
- days_push: 1055
- n_releases_24m: 0
Adoption not part of the score
1486 stars · 173 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Mockingjay is a Swift library for stubbing HTTP/HTTPS requests made via NSURLConnection or NSURLSession, including requests from libraries like Alamofire and AFNetworking. It integrates with XCTest and Quick, letting tests register matchers and response builders that unload automatically.
Use cases
- stub http requests in swift unit tests
- mock alamofire responses in xctest
- test network error handling in ios app
- stub api endpoints with uri templates
- mock json api responses in swift tests
When to choose
- you write Swift/iOS tests needing HTTP request stubbing
- you use XCTest or Quick and want automatic stub cleanup
- you want simple matcher/builder syntax with URI templates
When to avoid
- your project uses Swift concurrency or modern networking stacks it may not intercept
- you need actively developed tooling with frequent updates
- you test non-Apple platforms
Facets
library · maturity maintenance
mocking testing http-client testing developer-tools web-development http-stubbing xctest unit-testing cocoapods swift ios macos
1 source
- readme: https://github.com/kylef/Mockingjay · fetched 2026-08-28 · e5be69a0bc7d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kylef/Mockingjay | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="kylef/Mockingjay")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem