Commit 40565ae8 authored by Camil Staps's avatar Camil Staps 🐧

Add option documentation to Testing.Options

parent a6b0595d
Pipeline #9570 passed with stage
in 1 minute and 45 seconds
......@@ -32,3 +32,5 @@ derive gDefault MessageType, Options, OutputFormat, Run, Strategy
messageType :: TestEvent -> MessageType
parseTestOpts :: Options [String] -> MaybeErrorString Options
optionDoc :: [String]
......@@ -75,3 +75,18 @@ parseTestOpts opts ["--strategy":args] = case args of
[s:args] -> Error $ "Unknown strategy '" +++ s +++ "'"
[] -> Error "--strategy requires a parameter"
parseTestOpts opts [arg:args] = Error $ "Unknown option '" +++ arg +++ "'"
optionDoc :: [String]
optionDoc =
[ "General options:"
, " --help/-h Show this help"
, " --hide/-H TYPE Comma-separated list of types of messages to hide (start,pass,fail,skip,lost)"
, " --output-format/-f FMT The output format (json,human)"
, " --strategy/-S STRATEGY The test order strategy, where STRATEGY is one of"
, " default Order of the --run parameters"
, " failed-first First run the tests that failed last time; if they past continue with the rest"
, "Test options:"
, " --run/-r EXE Execute tests from executable EXE"
, " --option/-O OPT Add OPT to the command line of the previously added run"
, " --name/-n NAME Give the previously added run the name NAME"
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment