Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pointfreeco/swift-snapshot-testing
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.19.0
Choose a base ref
...
head repository: pointfreeco/swift-snapshot-testing
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.19.1
Choose a head ref
  • 3 commits
  • 7 files changed
  • 3 contributors

Commits on Mar 18, 2026

  1. Record attachment when recording new snapshots. (#1065)

    * Record attachment when recording new snapshots.
    
    * fix
    mbrandonw authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    d798bc4 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2026

  1. Fix UIImage diff attachments under Swift Testing (#1066)

    * Fix UIImage diffing to use portable DiffAttachment.data
    
    UIImage's `Diffing.image()` used the deprecated `Diffing(toData:fromData:diff:)`
    initializer which returns `[XCTAttachment]`. These get wrapped as
    `DiffAttachment.xcTest(...)`, and in the Swift Testing code path the `.xcTest`
    case is silently skipped — meaning image diff attachments are completely lost
    on iOS/tvOS under Swift Testing.
    
    Switch to the `.diff(toData:fromData:diffV2:)` factory method with
    `DiffAttachment.data(pngData, name:)` cases, matching the NSImage pattern.
    
    * Clean up and add test for UIImage.
    
    * clean up
    
    * update tests
    
    ---------
    
    Co-authored-by: Brandon Williams <mbrandonw@hey.com>
    ajkolean and mbrandonw authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    8ad49bf View commit details
    Browse the repository at this point in the history
  2. Prefer native Swift Testing image attachments on supported toolchains (

    …#1067)
    
    * Prefer native Swift Testing image attachments on Xcode 26.4+
    
    On Swift 6.3+ (Xcode 26.4+), CGImage/UIImage/NSImage/CIImage conform to
    Attachable. Add a helper that detects .png attachment names and records
    native image attachments instead of raw Data, enabling better Xcode
    integration (preview, thumbnails). Falls back to data attachments on
    older toolchains or for non-image data.
    
    * clean up
    
    * Fix Android.
    
    ---------
    
    Co-authored-by: Brandon Williams <mbrandonw@hey.com>
    ajkolean and mbrandonw authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    05b6f05 View commit details
    Browse the repository at this point in the history
Loading