Mimus Versions Save

Swift Mocking Library

2.0.0

3 years ago
  • 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

1.1.5

4 years ago
  • Adds support for Swift Package Manager

1.1.4

4 years ago
  • Mismatched arguments are now included in failure message (thanks @Eluss)
  • Added shorthand for AnyMatcher()

1.1.3

5 years ago

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

5 years ago

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

5 years ago
  • 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

6 years ago

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!)

1.0.2

6 years ago
  • 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

1.0.1

6 years ago

This is a minor release that adds support for:

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

1.0.0

7 years ago

Initial Mimus release