- Added contribution guide.
- BREAKING CHANGE: Spies were reworked. They now use superclasses as their victims if enabled. Please see the Readme for more information.
- BREAKING CHANGE: Verification of properties'
get
is now a method you have to call, instead of a property. This change was made to remove the "unused result" warning. bug #141
- Double the maximum parameters in
call
andcallThrows
methods. bug #145 - Make the generator deterministic by sorting input files.
- Add
equalTo
forArray
andSet
whereElement
isEquatable
.
- Fixed some errors with getters bug #151
- Updated for Swift 4 (Xcode 9 GM)
- Fixed crash when source files were using non-ASCII characters - bug #126
- Added
--exclude
parameter to explicitly exclude some types from mocking - PR #112 - (thanks to nxtstep for the feature) - Fixed compile errors when generating stubs where inner types were returned - bug #118
- Added possibility to reset multiple mocks with different types at once - but #103
- Fixed "too complex to resolve in reasonable time" error in generator
- Fixed directory names for case sensitive file systems - PR #114 - (thanks to sundance2000 for the fix)
- Moved repository from
SwiftKit
toBrightify
organization on GitHub.
- Rewritten Generator to use Stencil
- Use Swift PM for generator binary (results in faster builds)
- This release works with Swift 3.1
- Added support for inheritance mocking.
- Added support for
fileprivate
(thanks to lvdstam for implementation). - Added support for default values (thanks to lvdstam for implementation).
- Fixed wrongly generated code where public class had internal members.
- Show error in generator in build log.
- Fixed crash of generator when instance variable type is not explicitly set.
- Fixed support of closures and unwrapped optionals.
- Set "Reflection Metadata" to "None" to fix #72
- Support for Swift 3
- Added --no-class-mocking parameter to generator
- Added Stub objects
- Updated documentation
- Added more automated tests
- Added --file-prefix parameter to generator
and
andor
methods can now be used withMatchable
(literals)- Using of custom
Matchable
,ParameterMatcher
andCallMatcher
is now easier - Improved fail messages
- Merged generator and runtime repositories, making updating easier.
- Added support for named arguments in methods.
- Added support for classes with custom initializers.
- Changed usage of spies. Instead of
init(spyOn:)
useinit().spy(on:)
.
- Added release notes
- Added stub resetting
- Added
thenCallRealImplementation
- Added argument capturing
- Added
verifyNoMoreInteractions
- Added on going stubbing
- Added
thenDoNothing