SwiftMockGeneratorForXcode
SwiftMockGeneratorForXcode copied to clipboard
An Xcode extension (plugin) to generate Swift test doubles automatically.
The below mocked generic completion handler does not compile as the generic `Value` can not be found outside the function. Current state: ```swift protocol MyProtocol { func foo(completion: (Value) ->...
As a developer I want get correctly generated mocks when using the new `async` keyword from the concurrency feature introduced with Swift 5.5. Using the *Version 0.27 (3)* I experienced...
code like this breaks the code generation ``` func start(meterCallback: ((_ volume: Double) -> Void)?) ``` Aside of this issue I am actually loving the this extension!
I cloned the repo, because we want less properties in our created spies. When I try to compile it misses several libraries: * `libGRMustache7-MacOS.a` * `UseCases.framework` Also, the Makefile refers...
I was wondering: Isn't it more common to name parameters and functions that **did** something with `did` in the beginning. For instance, `didInvokeSend` instead of `invokedSend`. I know this makes...
Hello! When generating mocks for functions with input parameters on different lines, would it be possible to have them auto-indent based on Xcode's default `ctrl-i` shortcut? The end result would...
Getting error that AST cannot be used as it was compiled for 5.3 while Xcode 12 is using 5.3.2
Protocols which contain generic functions can not be generated because the generic type can not be determined. ex, this function: `func getObjects(_ objects: T.Type) -> Results?` Will generate as: ```...
I would love to be able to install `genmock` via Homebrew 😃
Given a protocol with an optional property like: ``` protocol MyProtocol { var myProperty: String? { get } } ``` The following non-optional stubbed value is generated: ``` var invokedMyPropertyGetter...