test-framework-0.8: Framework for running and organising tests, with HUnit and QuickCheck support

Safe HaskellNone

Test.Framework.Runners.Console

Synopsis

Documentation

defaultMain :: [Test] -> IO ()

defaultMainWithArgs :: [Test] -> [String] -> IO ()

A version of defaultMain that lets you ignore the command line arguments in favour of another list of Strings.

defaultMainWithOpts :: [Test] -> RunnerOptions -> IO ()

A version of defaultMain that lets you ignore the command line arguments in favour of an explicit set of RunnerOptions.

optionsDescription :: [OptDescr SuppliedRunnerOptions]

interpretArgs :: [String] -> IO (Either String (RunnerOptions, [String]))

Parse the specified command line arguments into a RunnerOptions and some remaining arguments, or return a reason as to why we can't.

interpretArgsOrExit :: [String] -> IO RunnerOptions

A version of interpretArgs that ends the process if it fails.