Releases: MetalheadSanya/swift-mock
0.8.0
What's Changed
- New stubbing method
thenAnswer
. by @MetalheadSanya in #59 - Append SwiftMockConfiguration module for correct engine configuration by @MetalheadSanya in #61
- Point verify failure to 'verify' call by @MetalheadSanya in #62
Full Changelog: 0.7.0...0.8.0
0.7.0
What's Changed
- Method attribute support by @MetalheadSanya in #47
- Bump github.com/apple/swift-syntax from 509.0.1 to 509.0.2 by @dependabot in #51
- Primary Associated Types Support by @MetalheadSanya in #52
- Support Rethrows Method by @MetalheadSanya in #53
- Support for opaque type arguments by @MetalheadSanya in #54
Full Changelog: 0.6.1...0.7.0
Bugfix
What's Changed
- Public protocol mock should have a public default initializer by @MetalheadSanya in #46
Full Changelog: 0.6.0...0.6.1
Protocol Attributes, Subscript & Function Parameters support
What's Changed
- Support for protocol attributes by @MetalheadSanya in #33
- Support for subscript by @MetalheadSanya in #35
- Bump github.com/apple/swift-syntax from 509.0.0 to 509.0.1 by @dependabot in #34
- Support for associated types by @MetalheadSanya in #39
- Support for escaping function as a method parameter by @MetalheadSanya in #41
- Support for non-escaping functions as a method parameters by @MetalheadSanya in #42
New Contributors
- @dependabot made their first contribution in #34
Full Changelog: 0.5.0...0.6.0
Property effects and generic support
New support features
- Support generic methods by @MetalheadSanya in #30
- Support throws properties by @MetalheadSanya in #21
- Support async properties by @MetalheadSanya in #22
Full Changelog: 0.4.1...0.5.0
0.4.1
What's Changed
Bug Fix
- Fix InOrder 'greedy' offset bechavior by @MetalheadSanya in #7
Improvements:
- Append diagnostic for correct errors for unsupported features by @MetalheadSanya in #19
- Support for internal protocols by @MetalheadSanya in #20
Full Changelog: 0.4.0...0.4.1
Append InOrder verification for mock objects
This release adds InOrder verification for properties.
This release adds InOrder verification for mock objects:
- Allow to check the method call order of single mock object.
- Allow to check the method call order of multiply mock objects.
- Add explanation of Verify/InOrder 'greedy' algorithm.
Additionally Verify code generation did changed. Now it allow use different storages.
What's Changed
- Add codegeneration to macro for verifying property getting and setting by @MetalheadSanya in #2
- Refactor Verify structure generation for support different containers by @MetalheadSanya in #3
- Romove docs folder because docs building by GitHub actions now by @MetalheadSanya in #4
- Add inOrder method by @MetalheadSanya in #5
- Add InOrder documentation and made InOrder greedy by @MetalheadSanya in #6
Full Changelog: 0.3.0...0.4.0
Property Verifying
This release adds code generation for verifying getters and setters.
You can verify property getting by using propertyNameGetter() method in Verify structure.
You can verify property setting by using propertyNameSetter(_:) method in Verify structure.
Property stubbing release
This release adds methods for property stubbing in generated Mock
class.
- You can stub property getting by using
$propertyNameGetter()
method. - You can stub property setting bu using
$propertyNameSetter(_:)
method.
Verifying
This release contains methods and matchers for verifying mocks calls.