Releases: MakeAWishFoundation/SwiftyMocky
Releases · MakeAWishFoundation/SwiftyMocky
4.2.0
What's Changed
- Bumps Sourcery dependency to 1.8.0 by @ohitsdaniel in #307
Full Changelog: 4.1.0...4.2.0
4.1.0
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
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
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)
Version 4.0.3 - fixes for Sourcery 1.0.x and other
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
Version 4.0.1 - Fixes for properties
Fixed:
- Fixed issues with access modifiers for properties
Version 4.0.0 - new structure + prototyping
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
Fix release for dependencies
Fix update for dependencies (Crayon was renamed to Chalk)
Version 3.4.0
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 onStaticMock
in favour ofresetMock(...)
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
Version 3.3.4
Fixed:
- Fixed problem with not printable ASCI characters by @TimeDelta
- Fixed problem with missing generic constraints by @demalex