SwiftMockGeneratorForXcode
SwiftMockGeneratorForXcode copied to clipboard
An Xcode extension (plugin) to generate Swift test doubles automatically.
Given a protocol like: ``` protocol MyProtocol { var myObservable$: Observable { get } } ``` when I 'generate spy' then the generated code does not contain stubs and spies...
It used to work on Xcode 9.+ . Once I have upgraded to Mojave and Xcode 10, the generator disappears from the editor menu. Of course I have enabled permission...
Hi! So, I do have a project written both in Objective C and Swift. But I would like to write tests only Swift either for those Objective-C modules. Could I...
When code is generated it doesn’t set an access control to anything. This raises a compiler error when both the protocol and the mock class are public/open. For example, this...
It would be cool if the user of the plugin could format the output from the plugin according to their wishes / standards in relation to naming in particular, i.e....
For this protocol: ```swift protocol MyClassProtocol { func set(param1: Int, param2: Int) } ``` It generates: ```swift class MyClassMock: MyClassProtocol { var invokedSet = false var invokedSetCount = 0 var...
When attempting to generate anything using the plugin for the first time I am receiving this *First selection was not a text range* error. Looking through the code I can...
I would like to be able to create Stub / Spy of framework objects. import Photos class PHAssetMock: PHAsset { }
Adds access modifier of mock class to all its members. ``` public protocol Foo { func bar() } public class FooSpy: Foo { public var invokedBar = false public var...