testrunner-0.9.1: Easy unit test driver framework

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

Documentation

runTests :: [(String, TestRunnerTest)] -> IO ResultSource

Run a list of named tests.

runTestsParallelSource

Arguments

:: Int

Number 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

Arguments

:: Int

Number of worker threads to use

-> Args

Arguments 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 

Fields

numPassed :: Int
 
failures :: [(String, String)]
 

Instances