Skip to content

Releases: mimus-swift/Mimus

The Great Rename

08 Apr 09:26
164f831
Compare
Choose a tag to compare
  • BREAKING MockEquatable has been renamed to Matcher 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] to Storage 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

10 Dec 10:28
a3b04eb
Compare
Choose a tag to compare
  • Adds support for Swift Package Manager

1.1.4

06 Aug 10:48
d77ab8e
Compare
Choose a tag to compare
  • Mismatched arguments are now included in failure message (thanks @Eluss)
  • Added shorthand for AnyMatcher()

1.1.3

14 May 13:58
76cfb34
Compare
Choose a tag to compare

This is a minor feature release containing following changes:

  • Added '.atMost' VerificationMode (thanks @kamwysoc)
  • Make failure messages more detailed (thanks @kamwysoc)
  • Allow passing of nil values to Equal and Identical matchers

1.1.2 - Maintenance Release

27 Feb 21:08
9ce7d2e
Compare
Choose a tag to compare

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

03 Dec 13:05
b374f9b
Compare
Choose a tag to compare
  • 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 and NotMatcher (see here for details)

1.1.0 - Mimus becomes much easier to use!

16 Mar 08:05
511fa52
Compare
Choose a tag to compare

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 AnyObjects 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 to equalTo(other: Any). This allows to record any type of value, not just types that conform to MockEquatable, greatly increasing how versatile this framework is
  • Added InstanceOf<T> matcher
  • Added EqualTo and IdenticalTo 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

05 Oct 07:07
Compare
Choose a tag to compare
  • 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

01 Aug 10:02
Compare
Choose a tag to compare

This is a minor release that adds support for:

  • Float type comparison
  • NSURL and URL type comparison
  • Better Carthage support

1.0.0

23 Mar 14:06
Compare
Choose a tag to compare

Initial Mimus release