Releases: seanhenry/SwiftMockGeneratorForXcode
Releases · seanhenry/SwiftMockGeneratorForXcode
Little updates
- Built against Xcode 9.2
- Updates dependencies
- Introduces Kotlin Native
- Supports backticks and keywords in methods/properties
- Adds support for
inoutparameters
Performance and UX improvements
- Improves performance when formatting larger mocks.
- Keeps a history of your projects to easily switch between them.
- Clear the project history.
Closure support
- Stub a closure's arguments and it will be called with the stubbed values.
- Closures without values are called automatically.
- Supports
@escaping,@convention(),@autoclosuresyntax.
Tuples, overloads and default values
- Supports tuple parameters
- Supports overloaded method and property names by generating unique invocation property names
- Adds a default value to stubs where possible
Xcode 9 & capture invoked parameters and properties
- Supports Xcode 9
- Captures the value of invoked properties
- Captures the values of invoked method parameters
- Captures a list of invoked values
- Generate the mock with your cursor anywhere inside the mock class
- Improved error messages
- Supports unowned, unowned(safe), unowned(unsafe) protocol properties
Property support
- Check invocation status of property getter and setter
- Stub property with return value
A make file has also been added so the project dependencies can be built from scratch.
Generate mocks in Xcode
See README for usage instructions.
- Generates invocation check.
- Generates invocation count.
- Generates stub to return from mock.