hspec-checkers-0.1.0.1: Allows to use checkers properties from hspec

Safe HaskellNone
LanguageHaskell2010

Test.Hspec.Checkers

Description

This module bridges between checkers and hspec. It makes it easy to integrate tests for class laws provided by checkers into test suites written with hspec.

Here's an example testing that lists satisfy the Monoid laws:

import Test.Hspec -- Hspec
import Test.Hspec.Checkers -- Checkers
import Test.QuickCheck.Classes -- Classes

main :: IO ()
main = hspec spec

spec :: Spec
spec = do
  testBatch (monoid (undefined :: [Int]))
 

Synopsis

Documentation

testBatch :: TestBatch -> Spec Source

Allows to insert a TestBatch into a Spec.