SwiftMockGeneratorForXcode icon indicating copy to clipboard operation
SwiftMockGeneratorForXcode copied to clipboard

Using this with Objective C

Open quetool opened this issue 4 years ago • 1 comments

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?

quetool avatar Jul 23 '20 21:07 quetool

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.

seanhenry avatar Nov 02 '20 10:11 seanhenry