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 Source #

Create a Test from a Hedgehog property

Options you can pass in via tasty

newtype HedgehogTestLimit Source #

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

Constructors

HedgehogTestLimit Int 

Instances

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

newtype HedgehogDiscardLimit Source #

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

Instances

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

newtype HedgehogShrinkLimit Source #

The number of shrinks allowed before Hedgehog will fail a test

Constructors

HedgehogShrinkLimit Int 

Instances

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

newtype HedgehogShrinkRetries Source #

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

Instances

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