MakeAWishFoundation / SwiftyMocky

Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.03k stars 103 forks source link

Mock generation with Inheritance from class #289

Open maxxx777 opened 3 years ago

maxxx777 commented 3 years ago

Hello, is there a way to generate mock with inheritance from class? for exampe:

// sourcery: AutoMockable
protocol MyCustomProtocol: UIViewController {
    func myFunc()
}

in mock generated file I’d like to get

open class MyCustomProtocolMock: UIViewController, MyCustomProtocol, Mock

but it generates only

open class MyCustomProtocolMock: MyCustomProtocol, Mock
amichnia commented 3 years ago

Working on it

hivinau commented 1 year ago

Any updates ? 🙏

mecoFarid commented 1 year ago

@hivinau Better move on to Cuckoo or Mockingbird. They have lots of super important missing functionalities but, at least, you can mock classes in both of them

hivinau commented 1 year ago

@mecoFarid thank you 💪