test package:test-framework
A single test of some particular type
Framework for running and organising tests, with HUnit and QuickCheck support
Allows tests such as QuickCheck properties and HUnit test cases to be
assembled into test groups, run in parallel (but reported in
deterministic order, to aid diff interpretation) and filtered and
controlled by command line options. All of this comes with colored
test output, progress reporting and test statistics output.
Assemble a number of tests into a cohesive group
Test names or descriptions. These are shown to the user
Assemble a number of tests into a cohesive group
Something like the result of a test: works in concert with
Testlike. The type parameters are the type that is used for
progress reports and the type of the final output of the test
respectively.
The name of a type of test, such as
Properties or "Test Cases".
Tests of types of the same names will be grouped together in the test
run summary.
Something test-like in its behaviour. The type parameters are the type
that is used for progress reports, the type of the final output of the
test and the data type encapsulating the whole potential to do a test
respectively.
TestRunner class simplifies folding a
Test. You need to
specify the important semantic actions by instantiating this class,
and
runTestTree will take care of recursion and test filtering.
Convenience for creating tests from an
IO action
Convenience for creating tests from an
IO action, with a
cleanup handler for when tests are finished
Add some options to child tests
Maximum number of tests to generate when using something like
QuickCheck
Maximum depth of generated tests when using something like SmallCheck
Maximum size of generated tests when using something like QuickCheck