Property-Based Testing
Overview
Hedgehog will eat all your bugs. 'Hedgehog' is a property-based testing package in the spirit of 'QuickCheck'. With 'Hedgehog', one can test properties of their programs against randomly generated input, providing far superior test coverage compared to unit testing. One of the key benefits of 'Hedgehog' is integrated shrinking of counterexamples, which allows one to quickly find the cause of bugs, given salient examples when incorrect behaviour occurs.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- WARNING12 OK, 1 WARNING2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 29includes a package overview page
- Examples that run
- 100%12 run in a plain check
- Exported functions with examples
- 44%
- Documented parameters
- 98%
- Return-value docs
- 16%
- Help pages citing references
- 3%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 24
- Median days to close, 50 most recently updated closed PRs
- 2
Forks over time
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/hedgehogqa/r-hedgehog on 2026-10-22.
Dependencies
Installing hedgehog adds 24 packages (11 with compiled code, 6.6 MB of source tarballs). Heaviest: fs 1.4 MB, jsonlite 1.0 MB, testthat 814 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.2Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.12018-08-22
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-08-22
- Total releases
- 2 / 8 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 139 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("hedgehog")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.