# typelift/SwiftCheck

QuickCheck for Swift

Repository: https://github.com/typelift/SwiftCheck
Canonical: https://ross.abutalabs.com/products/swiftcheck
Language: Swift
License: MIT
License Family: permissive
Topics: swift, quickcheck, property-based-testing
Last push: 2022-04-03T14:57:09+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4413, "days_push": 1613, "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 1427, forks 110 (observed 2026-08-28T04:04:41.806810+00:00)

## What it is
SwiftCheck is a property-based testing library for Swift, porting the Haskell QuickCheck approach. It automatically generates random test data to verify that program properties hold across a wide range of inputs.

## Use cases
- property-based testing in swift
- generate random test data for unit tests
- port quickcheck tests to swift
- test invariants of algorithms and data structures
- find edge cases in swift functions automatically
- shrink failing test cases to minimal examples

## When to choose
- you want property-based testing in a Swift project
- you want to complement XCTest with randomized input testing
- you want automatic shrinking of failing cases

## When to avoid
- you only need simple example-based assertions
- your project is not written in Swift
- you need a library under active development with frequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, fuzzing
- domain: testing, developer-tools, programming-languages
- platform: -
- tags: property-based-testing, quickcheck, random-test-data, xctest-complement, swift, macos, ios, linux

## Member repositories
- typelift/SwiftCheck (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.806810+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-30T04:37:24.201345+00:00, confidence not recorded.
  - readme: https://github.com/typelift/SwiftCheck (fetched 2026-08-28T04:04:41.806810+00:00, sha b59e8aac41ac)
- Data as of 2026-08-30T08:39:29.467469+00:00.
