Releases: pointfreeco/swift-snapshot-testing
1.18.0
What's Changed
- Added: A new
.customDump
strategy (vended by a newSnapshotTestingCustomDump
module) (#948). The existing.dump
strategy has been soft-deprecated. - Added: Android support (thanks @marcprux, #939).
- Fixed:
assertInlineSnapshot
'srecord
parameter now supports the all record modes (#947). - Fixed: Avoid main thread detection issue in
@MainActor
-annotated tests (thanks @peterkovacs, #946).
New Contributors
- @marcprux made their first contribution in #939
- @peterkovacs made their first contribution in #946
Full Changelog: 1.17.7...1.18.0
1.17.7
What's Changed
- Fixed: Record Attachments in Never mode by @jflan-dd in #943
- Fixed: Handle circular reference in snap function by @OguzYuuksel in #942
- Infrastructure: Fix typo in IntegratingWithTestFrameworks.md by @shepting in #941
New Contributors
- @shepting made their first contribution in #941
- @OguzYuuksel made their first contribution in #942
Full Changelog: 1.17.6...1.17.7
1.17.6
1.17.5
1.17.4
What's Changed
- Fixed: Address an Xcode 16 beta 5 compilation error (#885).
Full Changelog: 1.17.3...1.17.4
1.17.3
What's Changed
- Fixed:
failed
record mode now properly re-records inline snapshots (#874). - Fixed: Avoid a crash when calling
assertSnapshot
from a Swift Testing test (#884).
Full Changelog: 1.17.2...1.17.3
1.17.2
What's Changed
- Fixed: SwiftSyntax dependency has been updated to point to the new swiftlang organization on GitHub, preventing warnings when used with other libraries targeting the same updated organization.
Full Changelog: 1.17.1...1.17.2
1.17.1
What's Changed
- Fixed: Xcode 16 beta 3 support for Swift Testing (#869).
Full Changelog: 1.17.0...1.17.1
1.17.0
What's Changed
See the migration guide for more information.
-
Added: Beta support for Swift Testing, and other improvements. by @mbrandonw in #867
-
Added: A
Record
mode has been introduced that can be configured with one of four states (.all
,.failed
,.missing
,.never
) instead of just theisRecording
boolean (thanks @NachoSoto, #768). -
Added:
diffTool
can now be configured with a closure that is passed the old and new diff paths in order to output a custom format (thanks @js, #840). -
Added: Allow
isRecording
default value to be configured usingSNAPSHOT_TESTING_RECORD
env var (thanks @tgrapperon, #862).This can be configured with any of the record modes introduced in this version, e.g.
SNAPSHOT_TESTING_RECORD=failed
. -
Infrastructure: Add
.editorconfig
for consistent code formatting (thanks @Matejkob, #864).
New Contributors
- @Matejkob made their first contribution in #864
- @tgrapperon made their first contribution in #862
- @js made their first contribution in #840
Full Changelog: 1.16.2...1.17.0