Swiftpack.co - birdrides/mockingbird as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by birdrides.
birdrides/mockingbird 0.19.2
A Swifty mocking framework for Swift and Objective-C.
⭐️ 424
🕓 Yesterday
iOS macOS watchOS tvOS
.package(url: "https://github.com/birdrides/mockingbird.git", from: "0.19.2")

Mockingbird - Swift Mocking Framework


Package managers MIT licensed #mockingbird Slack channel

Mockingbird makes it easy to mock, stub, and verify objects in Swift unit tests. You can test both Swift and Objective-C without writing any boilerplate or modifying production code.


Visit MockingbirdSwift.com for quick start guides, walkthroughs, and API reference articles.


Automatically generating mocks.

$ mockingbird configure BirdTests -- --target Bird

Manually generating mocks.

$ mockingbird generate --testbundle BirdTests --target Bird --output Mocks.generated.swift

Using Mockingbird in tests.

// Mocking
let bird = mock(Bird.self)

// Stubbing

// Verification


Please read the contributing guide to learn about reporting bugs, developing features, and submitting code changes.


Mockingbird is MIT licensed. By contributing to Mockingbird, you agree that your contributions will be licensed under its MIT license.


Stars: 424
Last commit: 2 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

0.19.2: Counting Chickens
2 days ago

Patch Notes

  • Fixed pre-built library evolution and testability (#265) Andrew Chang | ugomarinelli
  • Fixed stubbing nested optional properties and Objective-C members (#274) Andrew Chang
  • Added compile-time checks for stubbing Swift methods (#273) Andrew Chang
  • Removed Objective-C based nil check (#272) Andrew Chang | Ian Keen
  • Cleaned up Synchronized wrapper (#275) Andrew Chang

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics