swift-summary
MockSwift
swift-summary | MockSwift | |
---|---|---|
1 | 1 | |
1,666 | 87 | |
- | - | |
1.8 | 0.0 | |
over 2 years ago | over 1 year ago | |
Swift | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swift-summary
MockSwift
-
Writing unit tests with mocked dependencies in Swift
Instead of creating our own test version of a class implementing the ApiClientProtocol, we'll use a mocking package to do the heavy lifting for us. There are multiple mocking packages for Swift, but I'll be using MockSwift here. Setting it up requires some work, since it has to work around the limitations of Swift.
What are some alternatives?
Awesome-Swift-Playgrounds - A List of Awesome Swift Playgrounds
Mocker - Mock Alamofire and URLSession requests without touching your code implementation
playground - Treesitter playground integrated into Neovim
Mockingbird - A Swifty mocking framework for Swift and Objective-C.
BadgeHub - A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
mockolo - Efficient Mock Generator for Swift
privacy-manifest - A simple tool that parses your Xcode project/workspace or Swift Package, detects required reason APIs and generates a Privacy Manifest if needed.
AutoMockable - AutoMocker is a Swift framework that leverages the type system to let you easily create mocked instances of your data types.
nef - 💊 steroids for Xcode Playgrounds
Mockingjay - An elegant library for stubbing HTTP requests with ease in Swift
mini-jam - Tiny Digital Audio Workstation in a Swift Playground (WWDC 2020 submission, accepted)
CatchingFire - Test Library for Swift's Error Handling