mockolo icon indicating copy to clipboard operation
mockolo copied to clipboard

Efficient Mock Generator for Swift

Results 35 mockolo issues
Sort by recently updated
recently updated
newest added

Howdy! I am trying to generate a mock for a protocol that inherits from other protocols using protocol composition. When testing this, I tried the following: ``` /// @mockable protocol...

I have two issues to report 1. When i try to use binary directly on Intel machine it's throwing Bad CPU type, After inspecting found that this binary is only...

## What Happened Hello, I am new to mockolo but this library is very great as a mock generator. After I installed mockolo via [Mint](https://github.com/yonaskolb/Mint), I ran the following [run...

# Overview * #178 added Swift 5.6 support, but f38ae33 limited the version flexibility of the swift-argument-parser dependency. The reasoning for this is explained in [this comment](https://github.com/uber/mockolo/pull/178#issuecomment-1071918213). * This makes...

Mockolo command line argument for customImports changed where -c shorthand was removed. Previously, you could use either --custom-imports OR -c: https://github.com/uber/mockolo/blob/d5f08f5e03bfc25f88adbe5bcab684ad2f25b45c/Sources/Mockolo/Executor.swift#L113-L114 But now only --custom-imports: https://github.com/uber/mockolo/blob/master/Sources/Mockolo/Executor.swift#L41-L43 This occurred on https://github.com/uber/mockolo/pull/153...

`MockoloFramework/SourceParser.swift:103: Fatal error: The operation couldn’t be completed. (SwiftSyntax.ParserError error 1.)` I do receive that error after updating my Xcode to 13.3. I was working previously on 13.2.1

If you annotate a protocol with a global actor, such as @MainActor, its generate mock doesn't compile: Given ``` /// @mockable @MainActor protocol RootController: AnyObject { var viewController: UIViewController {...

`brew install mockolo` `mockolo -s myDir -d ./GeneratedMocks.swift` ``` dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib Referenced from: /usr/local/bin/mockolo Reason: image not found Abort trap: 6 ```

I have tried to annotate with the following for my AnyPublisher ```swift /// @mockable(combine: publisher = CurrentValueSubject) ``` But the generator produces PassthroughSubject as ```swift public private(set) var publisherSubject: PassthroughSubject......

Computed properties that return `Self` also return `Self` in the mock. ```swift /// @mockable protocol FooRepository { static var shared: Self { get } } ``` I would like the...