# pointfreeco/swift-snapshot-testing

📸 Delightful Swift snapshot testing.

Repository: https://github.com/pointfreeco/swift-snapshot-testing
Canonical: https://ross.abutalabs.com/products/swift-snapshot-testing
Homepage: https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
Language: Swift
License: MIT
License Family: permissive
Topics: swift, testing, snapshot-testing, screenshot-testing
Last push: 2026-08-24T16:04:04+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 83, longevity 100
- inputs: {"age_days": 3344, "days_push": 9, "days_rel": 36, "gap_med": 39, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4324, forks 679 (observed 2026-08-28T04:08:41.993883+00:00)

## What it is
A Swift library for snapshot testing that lets developers assert any value against a recorded reference image or text representation. It supports any Swift platform and format, not just UIView images, and integrates with XCTest and Swift Testing.

## Use cases
- test iOS view controllers by comparing rendered screenshots
- verify UI does not regress visually between changes
- snapshot test any Swift value as text or image
- record reference snapshots automatically on first test run
- write custom snapshot strategies for domain types

## When to choose
- you build Swift or iOS apps and want visual regression tests
- you need snapshot testing beyond UIViews, for any value or format
- you use XCTest or Swift Testing and want easy snapshot assertions

## When to avoid
- your project is not in Swift
- you need cross-platform testing outside Apple/Swift ecosystems
- you prefer behavior-based unit tests over visual comparisons

## Facets
- artifact type: library
- maturity: stable
- function: testing, e2e-testing
- domain: testing, developer-tools, mobile-development
- platform: cross-platform
- tags: snapshot-testing, screenshot-testing, xctest, swift-testing, ui-testing, swift, ios, macos

## Member repositories
- pointfreeco/swift-snapshot-testing (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.993883+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:42.513340+00:00, confidence not recorded.
  - readme: https://github.com/pointfreeco/swift-snapshot-testing (fetched 2026-08-28T04:08:41.993883+00:00, sha 47321cf97e27)
  - homepage: https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing (fetched 2026-08-29T09:10:41.084241+00:00, sha c24b2dca1ddc)
  - site_page: https://www.pointfree.co/about (fetched 2026-08-29T09:10:41.090013+00:00, sha c3a02fbfb680)
  - site_page: https://www.pointfree.co/pricing (fetched 2026-08-29T09:10:41.087864+00:00, sha 30fe44105f13)
- Data as of 2026-08-30T08:39:29.467469+00:00.
