| Safe Haskell | None |
|---|
Test.Framework.CmdlineOptions
Description
This module defines the commandline options of the test driver provided by HTF.
Documentation
data CmdlineOptions Source
Commandline options for running tests.
Constructors
| CmdlineOptions | |
Fields
| |
defaultCmdlineOptions :: CmdlineOptionsSource
The default CmdlineOptions.
parseTestArgs :: [String] -> Either String CmdlineOptionsSource
Parse commandline arguments into CmdlineOptions. Here's a synopsis
of the format of the commandline arguments:
USAGE: COMMAND [OPTION ...] PATTERN ...
where PATTERN is a posix regular expression matching
the names of the tests to run.
-q --quiet only display errors
-n PATTERN --not=PATTERN tests to exclude
-l --list list all matching tests
-o FILE --output-file=FILE name of output file
--json output results in machine-readable JSON format
--split splits results in separate files to avoid file locking (requires -o/--output-file)
--colors=BOOL use colors or not
-h --help display this message
The string displayed for the --help option.
testConfigFromCmdlineOptions :: CmdlineOptions -> IO TestConfigSource
Turn the CmdlineOptions into a TestConfig.