hspec-2.11.16: A Testing Framework for Haskell

Safe Haskell | None
Language | Haskell2010

Test.Hspec.QuickCheck

Contents

- Params
- Shortcuts

Synopsis

- modifyArgs :: (Args -> Args) -> SpecWith a -> SpecWith a
- modifyMaxSuccess :: (Int -> Int) -> SpecWith a -> SpecWith a
- modifyMaxDiscardRatio :: (Int -> Int) -> SpecWith a -> SpecWith a
- modifyMaxSize :: (Int -> Int) -> SpecWith a -> SpecWith a
- modifyMaxShrinks :: (Int -> Int) -> SpecWith a -> SpecWith a
- prop :: (HasCallStack, Testable prop) => String -> prop -> Spec
- xprop :: (HasCallStack, Testable prop) => String -> prop -> Spec
- fprop :: (HasCallStack, Testable prop) => String -> prop -> Spec

# Params

modifyArgs :: (Args -> Args) -> SpecWith a -> SpecWith a Source #

Use modified `Args` for given spec.

modifyMaxSuccess :: (Int -> Int) -> SpecWith a -> SpecWith a Source #

Use a modified `maxSuccess` for given spec.

modifyMaxDiscardRatio :: (Int -> Int) -> SpecWith a -> SpecWith a Source #

Use a modified `maxDiscardRatio` for given spec.

modifyMaxSize :: (Int -> Int) -> SpecWith a -> SpecWith a Source #

Use a modified `maxSize` for given spec.

modifyMaxShrinks :: (Int -> Int) -> SpecWith a -> SpecWith a Source #

Use a modified `maxShrinks` for given spec.

# Shortcuts

prop :: (HasCallStack, Testable prop) => String -> prop -> Spec Source #

    prop ".." $
      ..

is a shortcut for

    it ".." $ property $
      ..

xprop :: (HasCallStack, Testable prop) => String -> prop -> Spec Source #

    xprop ".." $
      ..

is a shortcut for

    xit ".." $ property $
      ..

fprop :: (HasCallStack, Testable prop) => String -> prop -> Spec Source #

    fprop ".." $
      ..

is a shortcut for

    fit ".." $ property $
      ..