Moduletasty-hedgehog-1.4.0.2Haskell2010
Test.Tasty.Hedgehog
This package lets you test Hedgehog properties with tasty.
Typical usage would look like this:
testGroup "tasty-hedgehog tests" [
testPropertyNamed "reverse involutive" "prop_reverse_involutive" prop_reverse_involutive
, testPropertyNamed "sort idempotent" "prop_sort_idempotent" prop_sort_idempotent
]
- 6 types
- 3 values
- Packagetasty-hedgehog-1.4.0.2
- Exports9
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceHedgehog.hs
testPropertyNamed testName propertyName property creates a
TestTree from property using testName as the displayed
description for the property. The propertyName is used by Hedgehog
when a failure occurs to provide instructions for how to re-run
the property and should normally be set to a string representation
of the property argument.
testPropertyNamed
"reverse is involutive"
"prop_reverse_involutive"
prop_reverse_involutive
Options you can pass in via tasty
6 declarationsThe replay token to use for replaying a previous test run
Constructors
HedgehogReplay (Maybe (Skip, Seed))
Instances1IsOption
IsOption HedgehogReplayDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.Hedgehog
If a test case fails, show a replay token for replaying tests
Constructors
Instances1IsOption
IsOption HedgehogShowReplayDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.Hedgehog
The number of successful test cases required before Hedgehog will pass a test
Constructors
Instances4Eq, Ord, Show, IsOption
Eq HedgehogTestLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogOrd HedgehogTestLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogShow HedgehogTestLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogIsOption HedgehogTestLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.Hedgehog
The number of discarded cases allowed before Hedgehog will fail a test
Constructors
Instances4Eq, Ord, Show, IsOption
Eq HedgehogDiscardLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogOrd HedgehogDiscardLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogShow HedgehogDiscardLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogIsOption HedgehogDiscardLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.Hedgehog
The number of shrinks allowed before Hedgehog will fail a test
Constructors
Instances4Eq, Ord, Show, IsOption
Eq HedgehogShrinkLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogOrd HedgehogShrinkLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogShow HedgehogShrinkLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogIsOption HedgehogShrinkLimitDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.Hedgehog
The number of times to re-run a test during shrinking
Constructors
Instances4Eq, Ord, Show, IsOption
Eq HedgehogShrinkRetriesDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogOrd HedgehogShrinkRetriesDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogShow HedgehogShrinkRetriesDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.HedgehogIsOption HedgehogShrinkRetriesDefined in tasty-hedgehog-1.4.0.2 · Test.Tasty.Hedgehog