| Safe Haskell | None |
|---|
Test.Framework.Runners.Console
- defaultMain :: [Test] -> IO ()
- defaultMainWithArgs :: [Test] -> [String] -> IO ()
- defaultMainWithOpts :: [Test] -> RunnerOptions -> IO ()
- optionsDescription :: [OptDescr SuppliedRunnerOptions]
- interpretArgs :: [String] -> IO (Either String (RunnerOptions, [String]))
- interpretArgsOrExit :: [String] -> IO RunnerOptions
Documentation
defaultMain :: [Test] -> IO ()Source
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.
optionsDescription :: [OptDescr SuppliedRunnerOptions]Source
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.