hspec-1.8.1.1: Behavior-Driven Development for Haskell

Stability | provisional
Safe Haskell | None

Test.Hspec.QuickCheck

Contents

- Params
- Re-exports from QuickCheck
- Shortcuts

Description

Synopsis

- modifyMaxSuccess :: (Int -> Int) -> Spec -> Spec
- modifyMaxDiscardRatio :: (Int -> Int) -> Spec -> Spec
- modifyMaxSize :: (Int -> Int) -> Spec -> Spec
- property :: Testable prop => prop -> Property
- prop :: Testable prop => String -> prop -> Spec

# Params

modifyMaxSuccess :: (Int -> Int) -> Spec -> Spec Source

Use a modified `maxSuccess` for given spec.

modifyMaxDiscardRatio :: (Int -> Int) -> Spec -> Spec Source

Use a modified `maxDiscardRatio` for given spec.

modifyMaxSize :: (Int -> Int) -> Spec -> Spec Source

Use a modified `maxSize` for given spec.

# Re-exports from QuickCheck

Previous versions of Hspec provided a distinct `property` combinator, but it's now possible to use QuickCheck's `property` instead. For backward compatibility we now re-export QuickCheck's `property`, but it is advisable to import it from Test.QuickCheck instead.

property :: Testable prop => prop -> Property

# Shortcuts

prop :: Testable prop => String -> prop -> Spec Source

     prop ".." $
       ..

is a shortcut for

     it ".." $ property $
       ..