SwiftMockGeneratorForXcode
SwiftMockGeneratorForXcode copied to clipboard
Using this with Objective C
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 use this plugin to generate mocks of Objective C classes and protocols and use them on a Swift unit test?
Hi @quetool
It's unlikely that I will ever support ObjC because there is lots of support out there for writing mocks dynamically. These types of manual mocks are required in Swift because it is missing features like read/write introspection which mean a library like OCMock cannot work with it.