Skip to content

hedgehog

0.2

Property-Based Testing

5packages depend
16.1Kdownloads / year
86.8%test coverage
13/13checks pass

Overview

About
Maintained by Huw CampbellFirst published 2018-08-222 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.21
86.8%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-07
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
98%
Return-value docs
16%
References docs
3%

Downloads

16.1K
CRAN downloads in the past year
Rank #3,686 · ~44/day · ~1.3K/mo
Daily download trend is not available in this view yet.
1.3K30 days
2.9K90 days
16.1K1 year
Compare downloads with other packages →
Also on6.4K r2u32 autocran

Repository

Repository
62Stars
5Forks
3Open issues
1Open PRs
0Releases
67Commits
4Contributors
67 commits · Last activity 2025-11-03

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
Travis CI
Reproducibility and dev environment (1)
Nix
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (1)
Imports (1)
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
5direct
0indirect

Code & Tests

Code Composition
R 2,007 (59%)Rd 924 (27%)Vignettes 492 (14%)
Code characteristics
Object systems
S34
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

Loading call graph…

Lowest coverage

75 functions
FunctionCycloCoverage
gen.bind exp10%
gen.choice exp10%
gen.date exp10%
gen.example exp10%
gen.no.shrink exp10%
gen.recursive exp20%

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2Latest
    2025-11-03 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1
    2018-08-22
  • R
    R 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
Report a problem with this page →