Releases: jonreid/ViewControllerPresentationSpy
Releases · jonreid/ViewControllerPresentationSpy
Fix crash accessing swizzled property on non-swizzled alert
Xcode 14 support
Version 7.0.0
07 Jan 2023
Adds @MainActor
annotations to spies for Xcode 14 fix. You will need to add @MainActor
to any
test suites that use these spies.
Swift Package Manager Support
Version 6.1.0
06 Aug 2022
Now available from Swift Package Manager!
v6.0.0
v5.1.0
v5.0.1
v5.0.0
Version 5.0.0
30 Jan 2020
This release adds diagnostic test failures if verifiers clash.
- Fail test if code creates multiple instances of any single verifier. This inadvertently undid its
swizzling, leading to test failures that were tricky to diagnose. Now a failure message provides
guidance. - Also fail if an AlertVerifier and a PresentationVerifier exist simultaneously, since they both
swizzle UIAlertViewController. This has the potential to change test results, so this is marked as
a major release.
v4.2.2
v4.2.1
v4.2.0
Version 4.2.0
30 Aug 2019
Added DismissalVerifier
to capture calls to dismiss view controller. The Swift version has a
verify
method which checks:
- That the dismissed count is 1.
- The animated flag.
- The dismissed view controller, if provided.
Like the other verifiers, it also has a capturedCompletion
to capture any production code
completion handler, and a testCompletion
so that test code can supply its own completion handler.