1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Fix tests for new help verbiage

This commit is contained in:
Dennis Skinner
2023-12-03 23:02:09 -05:00
parent fcb4e53c36
commit 049ddda615

View File

@@ -1161,40 +1161,40 @@ RUNNER_TESTS = [
:text => [ :text => [
"ERROR: Unknown Option z", "ERROR: Unknown Option z",
"Options:", "Options:",
"-l List all tests", "-l List all tests and exit",
"-f TEST Only run tests with TEST in the name", "-f NAME Filter to run only tests whose name includes NAME",
"-n TEST Only run tests with TEST in the name", "-n NAME (deprecated) alias of -f",
"-h Show this help menu", "-h show this Help menu",
"-q Quiet/Decrease verbosity", "-q Quiet/decrease verbosity",
"-v Increase verbosity", "-v increase Verbosity",
"-x TEST Exclude tests with TEST in the name", "-x NAME eXclude tests whose name includes NAME",
], ],
} }
}, },
{ :name => 'ArgsHelp', { :name => 'ArgsHelp',
:testfile => 'testdata/testRunnerGenerator.c', :testfile => 'testdata/testRunnerGenerator.c',
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'], :testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
:options => { :options => {
:cmdline_args => true, :cmdline_args => true,
},
:cmdline_args => "-h",
:expected => {
:to_pass => [ ],
:to_fail => [ ],
:to_ignore => [ ],
:text => [
"Options:",
"-l List all tests",
"-f TEST Only run tests with TEST in the name",
"-n TEST Only run tests with TEST in the name",
"-h Show this help menu",
"-q Quiet/Decrease verbosity",
"-v Increase verbosity",
"-x TEST Exclude tests with TEST in the name",
],
}
}, },
:cmdline_args => "-h",
:expected => {
:to_pass => [ ],
:to_fail => [ ],
:to_ignore => [ ],
:text => [
"Options:",
"-l List all tests and exit",
"-f NAME Filter to run only tests whose name includes NAME",
"-n NAME (deprecated) alias of -f",
"-h show this Help menu",
"-q Quiet/decrease verbosity",
"-v increase Verbosity",
"-x NAME eXclude tests whose name includes NAME",
],
}
},
] ]
def runner_test(test, runner, expected, test_defines, cmdline_args, features) def runner_test(test, runner, expected, test_defines, cmdline_args, features)