| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Tasty.Hedgehog
Description
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 ]
Synopsis
- testProperty :: TestName -> Property -> TestTree
- newtype HedgehogReplay = HedgehogReplay (Maybe (Size, Seed))
- newtype HedgehogShowReplay = HedgehogShowReplay Bool
- newtype HedgehogTestLimit = HedgehogTestLimit (Maybe TestLimit)
- newtype HedgehogDiscardLimit = HedgehogDiscardLimit (Maybe DiscardLimit)
- newtype HedgehogShrinkLimit = HedgehogShrinkLimit (Maybe ShrinkLimit)
- newtype HedgehogShrinkRetries = HedgehogShrinkRetries (Maybe ShrinkRetries)
Documentation
Options you can pass in via tasty
newtype HedgehogReplay Source #
The replay token to use for replaying a previous test run
Constructors
| HedgehogReplay (Maybe (Size, Seed)) |
Instances
| IsOption HedgehogReplay Source # | |
Defined in Test.Tasty.Hedgehog Methods defaultValue :: HedgehogReplay Source # parseValue :: String -> Maybe HedgehogReplay Source # optionName :: Tagged HedgehogReplay String Source # optionHelp :: Tagged HedgehogReplay String Source # optionCLParser :: Parser HedgehogReplay Source # | |
newtype HedgehogShowReplay Source #
If a test case fails, show a replay token for replaying tests
Constructors
| HedgehogShowReplay Bool |
Instances
| IsOption HedgehogShowReplay Source # | |
Defined in Test.Tasty.Hedgehog | |
newtype HedgehogTestLimit Source #
The number of successful test cases required before Hedgehog will pass a test
Constructors
| HedgehogTestLimit (Maybe TestLimit) |
Instances
newtype HedgehogDiscardLimit Source #
The number of discarded cases allowed before Hedgehog will fail a test
Constructors
| HedgehogDiscardLimit (Maybe DiscardLimit) |
Instances
| Eq HedgehogDiscardLimit Source # | |
Defined in Test.Tasty.Hedgehog Methods (==) :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> Bool Source # (/=) :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> Bool Source # | |
| Ord HedgehogDiscardLimit Source # | |
Defined in Test.Tasty.Hedgehog Methods compare :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> Ordering Source # (<) :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> Bool Source # (<=) :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> Bool Source # (>) :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> Bool Source # (>=) :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> Bool Source # max :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> HedgehogDiscardLimit Source # min :: HedgehogDiscardLimit -> HedgehogDiscardLimit -> HedgehogDiscardLimit Source # | |
| Show HedgehogDiscardLimit Source # | |
Defined in Test.Tasty.Hedgehog | |
| IsOption HedgehogDiscardLimit Source # | |
Defined in Test.Tasty.Hedgehog | |
newtype HedgehogShrinkLimit Source #
The number of shrinks allowed before Hedgehog will fail a test
Constructors
| HedgehogShrinkLimit (Maybe ShrinkLimit) |
Instances
| Eq HedgehogShrinkLimit Source # | |
Defined in Test.Tasty.Hedgehog Methods (==) :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> Bool Source # (/=) :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> Bool Source # | |
| Ord HedgehogShrinkLimit Source # | |
Defined in Test.Tasty.Hedgehog Methods compare :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> Ordering Source # (<) :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> Bool Source # (<=) :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> Bool Source # (>) :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> Bool Source # (>=) :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> Bool Source # max :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> HedgehogShrinkLimit Source # min :: HedgehogShrinkLimit -> HedgehogShrinkLimit -> HedgehogShrinkLimit Source # | |
| Show HedgehogShrinkLimit Source # | |
Defined in Test.Tasty.Hedgehog | |
| IsOption HedgehogShrinkLimit Source # | |
Defined in Test.Tasty.Hedgehog | |
newtype HedgehogShrinkRetries Source #
The number of times to re-run a test during shrinking
Constructors
| HedgehogShrinkRetries (Maybe ShrinkRetries) |
Instances
| Eq HedgehogShrinkRetries Source # | |
Defined in Test.Tasty.Hedgehog Methods (==) :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> Bool Source # (/=) :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> Bool Source # | |
| Ord HedgehogShrinkRetries Source # | |
Defined in Test.Tasty.Hedgehog Methods compare :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> Ordering Source # (<) :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> Bool Source # (<=) :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> Bool Source # (>) :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> Bool Source # (>=) :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> Bool Source # max :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> HedgehogShrinkRetries Source # min :: HedgehogShrinkRetries -> HedgehogShrinkRetries -> HedgehogShrinkRetries Source # | |
| Show HedgehogShrinkRetries Source # | |
Defined in Test.Tasty.Hedgehog | |
| IsOption HedgehogShrinkRetries Source # | |
Defined in Test.Tasty.Hedgehog | |