Releases: mimus-swift/Mimus
Releases · mimus-swift/Mimus
2.2.0
The Great Rename
- BREAKING
MockEquatable
has been renamed toMatcher
to more closely express functionality provided (there is a typealias for backwards compatibility but it might still be breaking in some cases) - BREAKING
Mock.storage
type has been changed from[RecordedCall]
toStorage
to better support future features (like e.g. the recording of return values) - BREAKING Calling verify will now reset previously recorded values
- Added option to record values that should be returned for specific invocations
- Added option to provide a custom failure message for a matcher
Swift Package Manager Support
- Adds support for Swift Package Manager
1.1.4
1.1.3
1.1.2 - Maintenance Release
This is a minor maintenance release containing two small changes:
- Added out of the box comparison support for
UInt
- Fixed issues with comparing dictionary or array with a different yielded an incorrect message
1.1.1
- Added out of the box system classes that support
MockEquatable
(thanks @karolus) - Allow specifying none or any arguments when verifying calls (see here for details)
- Added additional
ClosureMatcher
andNotMatcher
(see here for details)
1.1.0 - Mimus becomes much easier to use!
The motivation behind this release is to simplify the usage of Mimus by limiting the amount of chrome you need to add to your application. Specifically recording values no longer requires them to implement MockEquatable
. Furthermore you can use IdenticalTo
and EqualTo
matchers to compare AnyObject
s and Equatable
types without the need to implement MockEquatable
by them.
In general this has significantly decreased the amount of additional code we had to write for our objects to make them compatible with Mimus.
- BREAKING Changed
MockEquatable
equation function toequalTo(other: Any)
. This allows to record any type of value, not just types that conform toMockEquatable
, greatly increasing how versatile this framework is - Added
InstanceOf<T>
matcher - Added
EqualTo
andIdenticalTo
matchers - Fixed issue where matching dictionaries with subset of equal keys could be successful, even if they contained different amount of entires (Thanks @karolus for spotting this!)
Minor improvements and bug fixes
- Added convenience compare function for comparing equatable objects in
MockEquatable
:return compare(other: other as? User)
- Fixed a bug where using nil in expected arguments as last value overrode previous comparison results
Minor improvements and missing types
This is a minor release that adds support for:
Float
type comparisonNSURL
andURL
type comparison- Better Carthage support