Safe Haskell | None |
---|
This module defines the commandline options of the test driver provided by HTF.
Documentation
data CmdlineOptions Source
Commandline options for running tests.
CmdlineOptions | |
|
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 -j[N] --threads[=N] run N tests in parallel, default N=4 --deterministic do not shuffle tests when executing them in parallel. -o FILE --output-file=FILE name of output file --json output results in machine-readable JSON format (incremental) --xml=FILE output results in junit-style XML 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
.