Safe Haskell | None |
---|---|
Language | Haskell2010 |
This package lets you test Hedgehog properties with tasty.
Typical usage would look like this:
testGroup "tasty-hedgehog tests" [ testProperty "reverse involutive" prop_reverse_involutive , testProperty "sort idempotent" prop_sort_idempotent ]
- testProperty :: TestName -> Property -> TestTree
- newtype HedgehogReplay = HedgehogReplay (Maybe (Size, Seed))
- newtype HedgehogShowReplay = HedgehogShowReplay Bool
- newtype HedgehogVerbose = HedgehogVerbose Bool
- newtype HedgehogTestLimit = HedgehogTestLimit Int
- newtype HedgehogDiscardLimit = HedgehogDiscardLimit Int
- newtype HedgehogShrinkLimit = HedgehogShrinkLimit Int
- newtype HedgehogShrinkRetries = HedgehogShrinkRetries Int
Documentation
Options you can pass in via tasty
newtype HedgehogReplay Source #
The replay token to use for replaying a previous test run
HedgehogReplay (Maybe (Size, Seed)) |
newtype HedgehogShowReplay Source #
If a test case fails, show a replay token for replaying tests
newtype HedgehogVerbose Source #
Show the generated Hedgehog test cases
newtype HedgehogTestLimit Source #
The number of successful test cases required before Hedgehog will pass a test
newtype HedgehogDiscardLimit Source #
The number of discarded cases allowed before Hedgehog will fail a test
newtype HedgehogShrinkLimit Source #
The number of shrinks allowed before Hedgehog will fail a test
newtype HedgehogShrinkRetries Source #
The number of times to re-run a test during shrinking