Releases: pointfreeco/swift-snapshot-testing
Inline snapshots and more strategies
What's new
-
@rjchatfield has introduced (#199) a brand new way of snapshotting textual information, called "inline snapshot testing," which automatically inlines snapshots directly in your test file. The 1.5.0 release includes a preview of this functionality! You can use the
_assertInlineSnapshothelper to try it out. Thanks to @rjchatfield for the PR, and find out more here. -
Two new
URLRequestsnapshot strategies have been included. First, @Sherlouk has included acurlsnapshotting strategy (#203), which snapshots your prepared requests in the cURL format. Also we now have a snapshot strategy for capturing aURLRequestwith its body pretty printed, when possible (#157). This helps makePOSTrequests more easily inspectable in the reference file.
Swift 5 Support
This release brings SnapshotTesting up to date with Swift 5!
What's changed?
11" iPad Pro Support, Better Extensibility, Better Messaging
What's new?
- A new view configuration for the 11" iPad Pro's resolution and safe area (#187).
- A few
letproperties onSnapshottingandDiffinghave been relaxed to bevars to make it easier to build strategies from existing ones (#189). - The UIImage diff message has been generalized to read nicely while in record mode (#188).
1.2.0
What's new?
- Small updates to failure messages #153
- Renamed generics in
pullback#154 - Support asserting against multiple strategies at once #150
- Make XCTAttachment's initializers public #159
- Create a typealias for SnapshotTestCase when not on Linux #169
- Specify custom snapshot directory #170
- Extract image diffing strategies. #172
1.1.0
What's new?
- Updated UIView and UIViewController
recursiveDescriptionstrategies to support custom trait collections and configuration (#141) - Added a new UIViewController
hierarchysnapshot strategy (#139) - Added a new
funcstrategy on functions that takeCaseIterablevalues (#94) - Added a new
descriptionstrategy powered byString.init(describing:)(#94) - Show diff when recording over previous snapshot (#147)
What's been fixed?
Official release for SnapshotTesting
Read more at the official blog post!
