Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports everything that you need to be able to create your own test runner.
- module Test.Framework.Runners.Options
- class TestRunner b where
- runTestTree :: TestRunner b => TestOptions -> [TestPattern] -> Test -> b
Documentation
class TestRunner b where Source #
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.
runSimpleTest :: (Testlike i r t, Typeable t) => TestOptions -> TestName -> t -> b Source #
How to handle a single test
How to skip a test that doesn't satisfy the pattern
runIOTest :: IO (b, IO ()) -> b Source #
How to handle an IO test (created with buildTestBracketed
)
runGroup :: TestName -> [b] -> b Source #
How to run a test group
:: TestRunner b | |
=> TestOptions | |
-> [TestPattern] | skip the tests that do not match any of these patterns, unless the list is empty |
-> Test | |
-> b |
Run the test tree using a TestRunner