Description Details Options References Examples
Hedgehog is a modern property based testing system in the spirit of QuickCheck, originally written in Haskell, but now also available in R.
Software testing is critical when we want to distribute our work, but unit testing only covers examples we have thought of.
With hedgehog (integrated into testthat), we can instead test properties which our programs and functions should have, and allow automatic generation of tests, which cover more that we could imagine.
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.
- 'hedgehog.tests': Number of tests to run in each property (Default: '100').
- 'hedgehog.size': Maximum size parameter to pass to generators (Default: '50').
- 'hedgehog.shrinks': Maximum number of shrinks to search for (Default: '100').
- 'hedgehog.discards': Maximum number of discards permitted within a property test before failure (Default: '100').
Campbell, H (2017). hedgehog: Property based testing in R The R Journal under submission.
https://github.com/hedgehogqa/r-hedgehog
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.