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

Safe HaskellSafe-Infered

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.

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 RunnerOptionsSource

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