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.

4.2.0

1 year ago

What's Changed

Full Changelog: https://github.com/MakeAWishFoundation/SwiftyMocky/compare/4.1.0...4.2.0

4.1.0

2 years ago

Added:

  • moved CLI to main repo (old will be deprecated)
  • protocol compositions (@erneestoc Ernesto Cambuston)
  • SwiftLint rules support (@migonin Mikhail Igonin)
  • cli binary in the repo
  • cli: resolving proper Sourcery version and binary path (mint is no longer default if Pods used)

Fixed:

  • Fixed some concurrency issues
  • Fixed several matcher and compare issues
  • Fixed availability for Swift 5.5
  • Fixed other basic issues and changes for Sourcery 1.6.0
  • Fixed observer setup when the test is marked as async
  • Fixed CLI dependencies (@SergeyKovalenko Sergey Kovalenko)
  • Moved tests from travis to github actions

4.1.0-pre

2 years ago

Added:

  • moved CLI to main repo (old will be deprecated)
  • protocol compositions (Ernesto Cambuston)
  • SwiftLint rules support (Mikhail Igonin)
  • cli binary in repo
  • cli: resolving proper Sourcery version and binary path (mint is no longer default, if Pods used)

Fixed:

  • Fixed some concurrency issues
  • Fixed several matcher and compare issues
  • Fixed @availability for Swift 5.5
  • Fixed other basic issues and changes for Sourcery 1.6.0
  • Fixed observer setup when test is marked as async

4.0.4

2 years ago

Fixed:

  • Fixed concurrency issue, synchronized mock invocations in/out via private queue.
  • Fixed missing annotations for stubbing with producer (Jean-Charles Dessaint)
  • Fixed compilation of pod library for Xcode 12.5 (beta) (Emanuel Munteanu)
  • Conditionally import XCTest related stuff in SwiftTestObserver (Mark DiFranco)

4.0.3

3 years ago

Fixed:

  • Fixed issues for Sourcery 1.0.2+, resulting in broken mocks
  • Fixed issues with @available for methods returning values
  • Fixed issues with unnamed parameters handling
  • Updated matcher for sequences,
  • Fixed issue with mutating annotation breaking generated mock

4.0.1

3 years ago

Fixed:

  • Fixed issues with access modifiers for properties

4.0.0

3 years ago

Important:

  • CLI is extracted to separate repo

Added:

  • SwiftyPrototype is now separat library, so it is now possible to use SwiftyMocky to both test & prototype (fake) app.
  • Support for methods with variadic parameters
  • Support for @available and @objc annotations
  • Refined assertion messages
  • Made it easier to ship generated mocks with project, allowing to use them by 3rd party
  • Resolved problem with ambiguity for generic methods that throws
  • Matcher issues should be more prominent and easier trackable
  • Matcher should fail test instead of crashing whenever possible
  • Verify now have better failure messages, including best matching invocations
  • typealias annotation to workaround problems with multiple types from different modules sharing same name.

Deprecated:

  • all methods and properties marked previously as deprecated are now removed.

Fixed:

  • Mock generation for protocols with internal types (@truebucha)
  • Pinned CLI dependencies (@ohitsdaniel)
  • Added missing tvOS and macOS support for carthage

3.6.0

4 years ago

Fix update for dependencies (Crayon was renamed to Chalk)

3.4.0

4 years ago

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

3.3.4

4 years ago

Fixed:

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