MakeAWishFoundation/SwiftyMocky
Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more. 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: 3302
- days_rel: n/a
- days_push: 730
- n_releases_24m: 0
Adoption not part of the score
1085 stars · 140 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
SwiftyMocky is a strongly typed Swift framework that automatically generates mock implementations of protocols using Sourcery code generation. It provides Mockito-like Given/Verify/Perform APIs to simplify unit testing in Swift projects.
Use cases
- generate mocks for swift protocols automatically
- stub return values in swift unit tests
- verify method invocations in tests
- mock generics in swift
- reduce boilerplate in ios unit testing
- mockito-style testing in swift
When to choose
- you write Swift unit tests with many protocol dependencies
- you want automatic mock code generation instead of hand-written mocks
- you need generics support and strongly typed stubbing/verification
When to avoid
- your project is not in Swift or not built with Xcode/SwiftPM tooling
- you prefer runtime mocking without a code generation step
- you need mocking for non-protocol constructs like classes without abstractions
Facets
framework · maturity active
mocking testing testing developer-tools mobile-development cli swift mock-generation sourcery unit-testing xcode protocol-mocking codegen ios macos
1 source
- readme: https://github.com/MakeAWishFoundation/SwiftyMocky · fetched 2026-08-28 · 7a8a7b27ea87
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| MakeAWishFoundation/SwiftyMocky | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="MakeAWishFoundation/SwiftyMocky")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem