SwiftyMocky Versions Save

Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.

3.3.3

4 years ago

Fixed:

  • Swift 5.0 issue with custom assertions not compiling

3.3.2

4 years ago

Fixed:

  • Fixed problems with multiple mocks being part of same target (@davidmtamas)

3.3.0

5 years ago

Added:

  • Added SwiftyMocky CLI, simplifying setup and providing doctor feature
  • Added support for Swift Package Manager (SPM)
  • New configuration file for working with multiple targets - Mockfile
  • Fixed redundant constraints for methods with stripped generics (@tarbayev)
  • Added Argument captor (@timedelta)

Removed:

  • dropped Swift 4.0, SwiftyMocky now requires Swift 4.1+
  • dropped MockyCustom subspec, new subspec is Prototyping, for Carthage SwiftyPrototype

3.2.0

5 years ago

Added:

  • Fixed issues with naming, as internal name Product tend to conflict with Mocked classes
  • Swift 5.0 support, fixes for optional types casting
  • Integrated Sourcery 0.16.0, fixed issues resulting in breaking with newest Sourcery

Removed:

  • No more support for Swift 3.x
  • All Given methods, that were marked as deprecated in SwiftyMocky 3.x, are now unavailable.

3.1.0

5 years ago

Added:

  • Parameter convenience constructing as .notNil, when Parameter wraps an optional type
  • Convenience Count.once as syntactic sugar for 1 for Verify
  • Proper integration with projects that already use Sourcery (@laxmorek)

Fixed:

  • Fixed generating mocks for methods that are throwing, and returning Self in the same time
  • Fixed associated types protocols generation, when methods generic constrained

3.0.0

5 years ago

Added:

  • Parameters handling values expressible by literals, are now also expressible by literals
  • Gracefully fail when return value is not stubbed
  • Support for subscripts
  • Stubbing policy, and support for recording sequence of return values
  • Sequencing policy, which allows to change order in which stubs are processed
  • Given for properties

Deprecated:

  • deprecated VerifyProperty
  • deprecated setters for readonly properties
  • deprecated Given constructors not matching method signature (argument labels fix)

Fixed:

  • multiple generation issues, like unnamed method parameters and esaping paramters names
  • fixed issues with generics handling, when some attributes was not recognized as genric
  • fixed issues with names collisions for methods different only in argument labels

2.1.0

5 years ago

All necessary improvements to run SwiftyMocky 2.x with Xcode 10 / Swift 4.2. No breaking changes introduced.

2.0.3

6 years ago

Stabilised release for Swift 4.1. Extended support for Swift 4.1, some improvements for older Swift versions (3.3), parsing fixes.

If you experience problems with Sourcery version, try doing pod update, as Sourcery 0.13 is solving most issues.

2.0.2

6 years ago

Stable for swift 4.0.3, pre-release for swift 4.1. In most cases will require to execute get_sourcery.sh with 4.1, and as it is still work in progress, 4.1 support is not stable yet.

2.0.1

6 years ago

Stable swift 4.0.3 compatible versions