testrunner-0.9: Easy unit test driver frameworkSource codeContentsIndex
Test.Runner.Driver
Description
Test.Runner.Driver contains the functions that determine which tests are run, with which parameters and by how many threads.
Synopsis
runTests :: [(String, TestRunnerTest)] -> IO Result
runTestsParallel :: Int -> [(String, TestRunnerTest)] -> IO Result
runTestsWithArgs :: Args -> [(String, TestRunnerTest)] -> IO Result
runTestsParallelWithArgs :: Int -> Args -> [(String, TestRunnerTest)] -> IO Result
data Result = Result {
numPassed :: Int
failures :: [(String, String)]
}
Documentation
runTests :: [(String, TestRunnerTest)] -> IO ResultSource
Run a list of named tests.
runTestsParallelSource
:: IntNumber of worker threads to use
-> [(String, TestRunnerTest)]The tests with their names
-> IO Result
Uses multiple threads to run a set of unit tests.
runTestsWithArgs :: Args -> [(String, TestRunnerTest)] -> IO ResultSource
Run a list of named tests, using the given QuickCheck Args for the QuickCHeck tests.
runTestsParallelWithArgsSource
:: IntNumber of worker threads to use
-> ArgsArguments to QuickCheck
-> [(String, TestRunnerTest)]Tests with names
-> IO Result
Use multiple threads to run a set of unit tests, and run the QuickCheck tests with the given QuickCheck Args.
data Result Source
The result of the test runner mentions how many tests passed, and the names and failure messages of the tests that failed.
Constructors
Result
numPassed :: Int
failures :: [(String, String)]
show/hide Instances
Produced by Haddock version 2.6.0