# uber/ios-snapshot-test-case

Snapshot view unit tests for iOS

Repository: https://github.com/uber/ios-snapshot-test-case
Canonical: https://ross.abutalabs.com/products/uber-ios-snapshot-test-case
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2025-12-02T22:19:46+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 55, release rhythm 8, longevity 100
- inputs: {"age_days": 3185, "days_push": 274, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1862, forks 227 (observed 2026-08-28T04:05:45.515257+00:00)

## What it is
An iOS library (formerly Facebook's FBSnapshotTestCase) for snapshot testing UIViews and CALayers by comparing rendered images against stored reference images. It fails unit tests when visual output differs, showing exact image diffs.

## Use cases
- snapshot test iOS views in unit tests
- catch unintended UI changes with image diffs
- verify view layouts render correctly
- test edge cases like text overflow in views
- visual regression testing for iOS apps

## When to choose
- you want pixel-accurate visual regression tests for iOS UI
- you maintain UIKit views with many visual edge cases
- you need an actively maintained fork of FBSnapshotTestCase with SPM support

## When to avoid
- you are building for Android or other non-Apple platforms
- you want SwiftUI preview-based testing instead of image snapshots
- your tests cannot tolerate reference image churn across devices/OS versions

## Facets
- artifact type: library
- maturity: stable
- function: testing, e2e-testing
- domain: testing, mobile-development, developer-tools
- platform: cpp
- tags: snapshot-testing, ui-testing, xctest, objective-c, cocoapods, swift-package-manager, visual-regression, ios, swift

## Member repositories
- uber/ios-snapshot-test-case (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:45.515257+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-30T03:15:42.641209+00:00, confidence not recorded.
  - readme: https://github.com/uber/ios-snapshot-test-case (fetched 2026-08-28T04:05:45.515257+00:00, sha ba483870e823)
- Data as of 2026-08-30T08:39:29.467469+00:00.
