tasty-quickcheck-0.9.1: QuickCheck support for the Tasty test framework.

Safe HaskellNone
LanguageHaskell2010

Test.Tasty.QuickCheck

Contents

Description

This module allows to use QuickCheck properties in tasty.

Synopsis

Documentation

testProperty :: Testable a => TestName -> a -> TestTree Source #

Create a Test for a QuickCheck Testable property

newtype QuickCheckTests Source #

Number of test cases for QuickCheck to generate

Constructors

QuickCheckTests Int 

Instances

Enum QuickCheckTests Source # 
Eq QuickCheckTests Source # 
Integral QuickCheckTests Source # 
Num QuickCheckTests Source # 
Ord QuickCheckTests Source # 
Real QuickCheckTests Source # 
IsOption QuickCheckTests Source # 

newtype QuickCheckMaxSize Source #

Size of the biggest test cases

Constructors

QuickCheckMaxSize Int 

Instances

Enum QuickCheckMaxSize Source # 
Eq QuickCheckMaxSize Source # 
Integral QuickCheckMaxSize Source # 
Num QuickCheckMaxSize Source # 
Ord QuickCheckMaxSize Source # 
Real QuickCheckMaxSize Source # 
IsOption QuickCheckMaxSize Source # 

newtype QuickCheckMaxRatio Source #

Maximum number of of discarded tests per successful test before giving up.

Constructors

QuickCheckMaxRatio Int 

Instances

Enum QuickCheckMaxRatio Source # 
Eq QuickCheckMaxRatio Source # 
Integral QuickCheckMaxRatio Source # 
Num QuickCheckMaxRatio Source # 
Ord QuickCheckMaxRatio Source # 
Real QuickCheckMaxRatio Source # 
IsOption QuickCheckMaxRatio Source # 

Internal

If you are building a test suite, you don't need these functions.

They may be used by other tasty add-on packages (such as tasty-hspec).

newtype QC Source #

Constructors

QC Property 

Instances

optionSetToArgs :: OptionSet -> IO (Int, Args) Source #

Convert tasty options into QuickCheck options.

This is a low-level function that was originally added for tasty-hspec but may be used by others.

Since: 0.9.1