Skip to content

Added:

  • New typealias "annotation", allowing to fix common issues with generic protocols and ambigious class names
  • A "sourcery" section to mockfile, to specify additional sourcery configurations to execute during generation
  • resetMock(...) methods to reset mock internals
  • New tests suite for Xcode 11.2 (Swift 5.2)

Deprecated:

  • deprecated clear() method on StaticMock in favour of resetMock(...)

Fixed:

  • Fixed Parameter ExpressibleByArrayLiteral init, by @chuckluck44 (Charley Luckhardt)
  • Fixed Xcode 11 support by @glyuck (Vladimir Lyukov)
  • Fixed typos in Readme, by @iliaskarim and @mikeakers (Mike Akers)
  • Fixed tests for swift 5.0 and linux tests
Assets 2

@amichnia amichnia released this Aug 9, 2019 · 37 commits to master since this release

Fixed:

  • Fixed problem with not printable ASCI characters by @TimeDelta
  • Fixed problem with missing generic constraints by @demalex
Assets 2

@amichnia amichnia released this Jun 26, 2019 · 47 commits to master since this release

Fixed:

  • Swift 5.0 issue with custom assertions not compiling
Assets 2

@amichnia amichnia released this Jun 6, 2019 · 50 commits to master since this release

Fixed:

  • Fixed problems with multiple mocks being part of same target (@davidmtamas)
Assets 2
May 28, 2019
Regenerated docs, updated versions to 3.3.1

@amichnia amichnia released this May 25, 2019 · 65 commits to master since this release

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
Assets 2

@amichnia amichnia released this Apr 3, 2019 · 85 commits to develop since this release

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.
Assets 2
Mar 6, 2019
Bumped rocky version
Feb 23, 2019
Excluding problematic setup on some subspecs
Fixed lilnting

@amichnia amichnia released this Feb 5, 2019 · 107 commits to develop since this release

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
Assets 2
You can’t perform that action at this time.