hedgehog
0.2Property-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
- OK2026-06-0813 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-0712 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 98%
- Return-value docs
- 16%
- References docs
- 3%
Downloads
Repository
Repository practices
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-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 6 max
- Test cases
- 24 / 0.21 per code line
Test coverage
Line coverage
87%
Expression
82.2%
Tests / Examples
86.8% / 56% ex
Functions
75 35 exported
Complexity
1.6 avg / 6 max
Call network
75 nodes / 117 edges
Call graph
Open call graph →Lowest coverage
75 functions| Function | Cyclo | Coverage |
|---|---|---|
| gen.bind exp | 1 | 0% |
| gen.choice exp | 1 | 0% |
| gen.date exp | 1 | 0% |
| gen.example exp | 1 | 0% |
| gen.no.shrink exp | 1 | 0% |
| gen.recursive exp | 2 | 0% |
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- 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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet