# Brightify/Cuckoo

Boilerplate-free mocking framework for Swift!

Repository: https://github.com/Brightify/Cuckoo
Canonical: https://ross.abutalabs.com/products/brightify-cuckoo
Language: Swift
License: MIT
License Family: permissive
Topics: mock, mockito, cuckoo, stub, swift, matcher, protocol, mocking, unit-testing, cocoapods
Last push: 2026-07-29T19:48:26+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 83, longevity 100
- inputs: {"age_days": 3886, "days_push": 35, "days_rel": 35, "gap_med": 41, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1742, forks 199 (observed 2026-08-28T04:05:30.360588+00:00)

## What it is
Cuckoo is a boilerplate-free mocking framework for Swift, using a compile-time code generator (Cuckoonator/build plugin) to create mock classes and a Mockito-inspired runtime DSL. It supports mocking protocols and classes via inheritance, with stubbing and matchers for unit tests.

## Use cases
- mock swift protocols and classes in unit tests
- stub method calls with mockito-style syntax
- generate mocks automatically at build time
- test ios app code with mocked dependencies
- verify method calls with matchers in swift tests

## When to choose
- you write Swift unit tests and want Mockito-like mocking without boilerplate
- your project uses protocols or class hierarchies that can be mocked via inheritance
- you use SwiftPM or CocoaPods and want build-plugin mock generation

## When to avoid
- you need to mock structs, final/private members, or static methods
- you prefer runtime reflection-based mocking without code generation
- your project targets platforms below iOS 13/macOS 10.15

## Facets
- artifact type: library
- maturity: active
- function: testing, mocking
- domain: testing, developer-tools, mobile-development
- platform: cli
- tags: swift, unit-testing, mockito-style, stubbing, code-generation, cocoapods, spm, ios, macos

## Member repositories
- Brightify/Cuckoo (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.360588+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:29:54.460692+00:00, confidence not recorded.
  - readme: https://github.com/Brightify/Cuckoo (fetched 2026-08-28T04:05:30.360588+00:00, sha 6caa96f23ac4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
