# BurntSushi/quickcheck

Automated property based testing for Rust (with shrinking).

Repository: https://github.com/BurntSushi/quickcheck
Canonical: https://ross.abutalabs.com/products/quickcheck
Language: Rust
License: Unlicense
License Family: permissive
Last push: 2026-04-03T00:52:54+00:00

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

## Adoption (not part of the score)
Stars 2786, forks 163 (observed 2026-08-28T04:07:21.925219+00:00)

## What it is
A Rust library for automated property-based testing that randomly generates inputs for property functions and shrinks failing cases to minimal counterexamples. It is a port of the classic QuickCheck approach from Haskell, with built-in generators for common types.

## Use cases
- test that reversing a vector twice returns the original input
- find minimal failing inputs for a parser with random data
- verify invariants of a sorting function over random lists
- shrink a failing test case to the smallest counterexample
- generate random integers, strings, and options for property tests
- replace hand-written example-based tests with property tests

## When to choose
- you want property-based testing in Rust with automatic shrinking
- you need random input generation for common Rust types without writing custom generators
- you want a mature, widely used crate with a simple macro-based API
- you prefer minimal counterexamples when a property fails

## When to avoid
- you need structured or grammar-based input generation for complex domains
- you want coverage-guided fuzzing of binaries rather than property tests
- you need stateful or model-based property testing out of the box

## Facets
- artifact type: library
- maturity: stable
- function: testing, fuzzing
- domain: testing, developer-tools
- platform: rust, cross-platform
- tags: property-based-testing, shrinking, quickcheck, randomized-testing, test-generation

## Member repositories
- BurntSushi/quickcheck (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:21.925219+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-30T08:16:00.725922+00:00, confidence not recorded.
  - readme: https://github.com/BurntSushi/quickcheck (fetched 2026-08-28T04:07:21.925219+00:00, sha 5be8fed213f6)
  - registry_crates: https://crates.io/api/v1/crates/quickcheck (fetched 2026-08-29T09:55:10.419774+00:00, sha a8b73f8df14f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
