Skip to content

Releases

0.1.0

Choose a tag to compare

@instantraaamen instantraaamen released this 13 Nov 10:33

Added

  • expectSnapshot and requireSnapshot, for Swift Testing.
  • Image strategies for SwiftUI views, UIView, UIViewController and CGImage, and strategies for text and data.
  • Views are drawn through a window of their own in the host application, with a fixed size and safe area.
  • The .snapshots trait, with recording, verifying, directory and imageTolerance.
  • SnapshotRecording.never, which attaches a missing reference instead of writing it.
  • A reference recorded by the running process is never accepted by it.
  • SnapshotVerification.referenceExists, which checks that references exist without rendering.
  • Pixel comparison in 8-bit sRGB, with a tolerance in pixels, a channel delta and ignored regions.
  • Rejection of images of one flat colour.
  • The recording environment is stored in every reference and reported when it differs.
  • SnapshotSettling, to wait for the main queue, a condition or a delay before a snapshot.
  • SnapshotEnvironment and withCleanUserDefaults.
  • snapshot-guard fetch, which places attached snapshots from a result bundle or an Xcode Cloud build, and --include-mismatched to adopt changed screens.
  • snapshot-guard check, which reports identical, flat and colliding references and mixed recording environments.
  • The App Store Connect token is only sent to the host of the API over HTTPS. A page link that points elsewhere is refused.