seanhenry / SwiftMockGeneratorForXcode

An Xcode extension (plugin) to generate Swift test doubles automatically.
MIT License
748 stars 47 forks source link

Using this with Objective C #39

Open quetool opened 3 years ago

quetool commented 3 years ago

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?

seanhenry commented 3 years ago

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.