Skip to content

Documentation

Build a mock from your protocol

The guides cover package setup and the core call workflow. The generated API reference documents every public declaration in each library product.

Guides

Getting started

Add the package and adapter, generate a mock, record calls, and compare them with typed expectations.

Read the guide

Examples

Read focused examples based on the package's compiled sample target.

Browse examples

API reference

Modules

Mocksmith

Macros, generated DSLs, matchers, captors, call history, reset scopes, and runtime types.

Open API reference

MocksmithCombine

Publisher controls for retained stubs that return Combine AnyPublisher values.

Open API reference