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 given(bird.canFly).willReturn(true) // Verification verify(bird.fly()).wasCalled()
Please read the contributing guide to learn about reporting bugs, developing features, and submitting code changes.
Mobile App Development Best Practices – 04.10
iOS New and Deprecated APIs in iOS 17 Abstract Class vs. Protocol-Oriented Approach in Swift Comparing the Performance of the...
New and Deprecated APIs in iOS 17
In this video, I would like to share with you some things that were either deprecated or added in iOS...
Promova helps people with dyslexia learn languages
The new Promova feature comes just in time for National Dyslexia Awareness Month and is available on the platform for...
Notify – A simple note application with modern MVVM, Compose and Material3
Notify is a simple note application that is built with Modern Android development tools. This project showcases the Good implementation...
Mobile App Development Best Practices – 03.10
iOS MetaCodable – Supercharge Swift’s Codable implementations with macros meta-programming How to build a Tuist plugin and publish it using...
How to make and use BOM (Bill of Materials) dependencies in Android projects
By using a BOM dependency, you can avoid specifying the versions of each individual library in your app, and let...