[Haskell-cafe] packages and QuickCheck

John Goerzen jgoerzen at complete.org
Wed Sep 10 16:15:48 EDT 2008


Sean Leather wrote:
> 
>     My tests are making use of a nice console test runner I wrote that
>     supports both HUnit and QuickCheck (and is extensible to other test
>     providers by the user):
>     http://hackage.haskell.org/cgi-bin/hackage-scripts/package/test-framework.
> 
> 
> The description looks great! I might have to try it out.
> 
> I used HUnit with QuickCheck 2, so that I could run QC properties as
> HUnit tests. QC2 has the added ability (over QC1) to run a property and
> return a Bool instead of just exiting with an error, and that works
> nicely within HUnit. Does test-framework do something else to support QC
> running side-by-side with HUnit?

See:

http://software.complete.org/static/missingh/doc/MissingH/Test-HUnit-Utils.html

Also some examples at

http://git.complete.org/offlineimap?a=tree;f=testsrc;h=217ee16404384ba2ae3ad01bcdb5696fe495bbdf;hb=refs/heads/v7

see runtests.hs and TestInfrastructure.hs



More information about the Haskell-Cafe mailing list