This version makes the SDK use Swift 6.
This version adds support for strict concurrency.
This version adds support for visionOS.
This version bumps Swift to 5.9.
Thanks to Tim Andersson and the people at BookBeat, MockingKit now supports keypaths.
Mockable
now supports keypaths for all functions exceptcall
.
This version removes all external dependencies.
- MockingKit no longer uses Quick and Nimble.
This version adds a mock pasteboard for macOS and adjusts the documentation setup.
MockPasteboard
now supports macOS as well.
- MockingKit no longer uses the DocC documentation plugin.
- This version adds support for Swift concurrency and
async
functions.
- Since Swift Concurrency requires iOS 13 and tvOS and later, the minimum platform versions for this library have been bumped.
This version bumps the package Swift version to 5.5 to enable extended DocC support.
It also removes previously deprecated parts of the library and removes call
functions with implicitly unwrapped args.
This version replaces the accidental SSH dependencies to Quick and Nimble with HTTPS ones.
Big thanks to Dave Verwer and SPI for noticing this!
MockTextDocumentProxy
no longer modifies its state when calling its functions.
MockTextDocumentProxy
has a new keyboardAppearance
property.
Thanks to @jinuman this version fixes the incorrectly high deployment targets.
This version also annotates another invoke function as deprecated.
This version renames invoke/invocation to call/calls to make the code cleaner and less technical:
AnyInvokation
→AnyCall
MockInvokation
→MockCall
Mock
registeredInvokations
→registeredCalls
Mockable
hasInvoked(_)
→hasCalled(_)
Mockable
hasInvoked(_, numberOfTimes:)
→hasCalled(_, numberOfTimes:)
Mockable
invoke
→call
Mockable
invokations(of:)
→calls(to:)
Mockable
resetInvokations
→resetCalls
Mockable
resetInvokations(for:)
→resetCalls(to:)
This also solves that with my Swedish eyes spelled invocation as invokation, which is how it's spelled here :)
The old invoke/invokation parts are marked as deprecated and will be removed in 1.0.
This version adds a MockPasteboard
and a MockTextDocumentProxy
.
This version adds stringArray
support to MockUserDefaults
.
This version renames Mockery to MockingKit.
This version's podspec has been adjusted to support macOS 10.10.
There is also a new demo app with more demos and examples.
This version supports macOS 10.10 instead of 10.15.
This version adds improved support for watchOS, tvOS and macOS.
This version adds mock classes that lets you commonly used Foundation
classes:
MockNotificationCenter
MockUserDefaults
This version replaces the memory address resolve logic with a new MockReference
approach.
MockReference
, replaces the brittle memory address-based approach from previous versions and makes invokations much more reliable. This means that it's now possible to use Mockery for more architectures and devices than 64 bit, that mocks can be shared across frameworks etc.
This version removes deprecations and updates to latest Quick and Nimble.
This version updates Nimble to 8.0.7
.
This version fixes a typo in the executions(of:)
deprecation.
This version adds a Mockable
protocol, which removes the need for the previous recorder approach. Mock
implements Mockable
by providing itself as mock.
This version renames some methods and introduces new typealiases to make the api more readable.
- The new typealias
MemoryAddress
is used instead ofInt
, which is the underlying type. AnyExecution
has been renamed toAnyInvokation
Execution
has been renamed toInvokation
executions(of:)
has been renamed toinvocations(of:)
- There are new
didInvoke
functions that help simplify inspections. - The
default
invoke argument has been renamed tofallback
This version also specifies an explicit "current project version", to avoid some Carthage problems.
This version renames Mock n Roll to Mockery and adds support for Xcode 11 and SPM.
This is the first versioned push to the CocoaPods trunk, but I will polish it a bit more until I bump it up to a real version.