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

Safe HaskellNone
LanguageHaskell98

Test.Framework.Runners.Console

Synopsis

Documentation

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

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

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

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

type SuppliedRunnerOptions = Maybe RunnerOptions Source

Nothing signifies that usage information should be displayed. Just simply gives us the contribution to overall options by the command line option.

optionsDescription :: [OptDescr SuppliedRunnerOptions] Source

Options understood by test-framework. This can be used to add more options to the tester executable.

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

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 Source

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