Test.Framework.Runners.Console
- defaultMain :: [Test] -> IO ()
- defaultMainWithArgs :: [Test] -> [String] -> IO ()
- defaultMainWithOpts :: [Test] -> RunnerOptions -> IO ()
- interpretArgs :: [String] -> IO (Either String (RunnerOptions, [String]))
- interpretArgsOrExit :: [String] -> IO RunnerOptions
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.
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.