tasty-hedgehog-0.1.0.2: Integrates the hedgehog testing library with the tasty testing framework.

Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Hedgehog

Contents

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

Documentation

testProperty :: TestName -> Property -> TestTree #

Create a Test from a Hedgehog property

Options you can pass in via tasty

newtype HedgehogTestLimit #

The number of successful test cases required before Hedgehog will pass a test

Constructors

HedgehogTestLimit Int 

Instances

Enum HedgehogTestLimit # 
Eq HedgehogTestLimit # 
Integral HedgehogTestLimit # 
Num HedgehogTestLimit # 
Ord HedgehogTestLimit # 
Real HedgehogTestLimit # 
Show HedgehogTestLimit # 
IsOption HedgehogTestLimit # 

newtype HedgehogDiscardLimit #

The number of discarded cases allowed before Hedgehog will fail a test

Instances

Enum HedgehogDiscardLimit # 
Eq HedgehogDiscardLimit # 
Integral HedgehogDiscardLimit # 
Num HedgehogDiscardLimit # 
Ord HedgehogDiscardLimit # 
Real HedgehogDiscardLimit # 
Show HedgehogDiscardLimit # 
IsOption HedgehogDiscardLimit # 

newtype HedgehogShrinkLimit #

The number of shrinks allowed before Hedgehog will fail a test

Constructors

HedgehogShrinkLimit Int 

Instances

Enum HedgehogShrinkLimit # 
Eq HedgehogShrinkLimit # 
Integral HedgehogShrinkLimit # 
Num HedgehogShrinkLimit # 
Ord HedgehogShrinkLimit # 
Real HedgehogShrinkLimit # 
Show HedgehogShrinkLimit # 
IsOption HedgehogShrinkLimit # 

newtype HedgehogShrinkRetries #

The number of times to re-run a test during shrinking

Instances

Enum HedgehogShrinkRetries # 
Eq HedgehogShrinkRetries # 
Integral HedgehogShrinkRetries # 
Num HedgehogShrinkRetries # 
Ord HedgehogShrinkRetries # 
Real HedgehogShrinkRetries # 
Show HedgehogShrinkRetries # 
IsOption HedgehogShrinkRetries #