WeTransfer/Mocker
Mock Alamofire and URLSession requests without touching your code implementation 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: 3333
- days_rel: n/a
- days_push: 630
- n_releases_24m: 0
Adoption not part of the score
1190 stars · 97 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Mocker is a Swift library that mocks data requests from URLSession and Alamofire using a custom URLProtocol, without changing app code. It lets developers run networking unit tests offline with registered mock responses.
Use cases
- mock URLSession requests in unit tests
- mock Alamofire requests without changing implementation
- run networking tests offline
- mock JSON API responses in Swift tests
- simulate delayed or redirect responses in tests
- mock requests based on file extension
When to choose
- you write Swift unit tests that hit URLSession or Alamofire networking
- you want deterministic, offline network tests on Apple platforms
- you need to simulate delays, redirects, or specific response files
When to avoid
- you need mocking for non-Apple platforms or non-Swift stacks
- you want full HTTP server simulation rather than URLProtocol interception
- your tests use networking libraries that bypass URL loading system protocols
Facets
library · maturity active
mocking testing http-client testing developer-tools apis urlsession alamofire urlprotocol unit-testing swift-package-manager swift ios macos
1 source
- readme: https://github.com/WeTransfer/Mocker · fetched 2026-08-28 · 065520307b82
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| WeTransfer/Mocker | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="WeTransfer/Mocker")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem