@@ -114,6 +114,11 @@ In the `examples` directory, Example 3's Rakefile demonstrates using a Ruby hash
114114This option specifies an array of file names to be ` #include ` 'd at the top of your runner C file.
115115You might use it to reference custom types or anything else universally needed in your generated runners.
116116
117+ ##### ` :defines `
118+
119+ This option specifies an array of definitions to be ` #define ` 'd at the top of your runner C file.
120+ Each definition will be wrapped in an ` #ifndef ` .
121+
117122##### ` :suite_setup `
118123
119124Define this option with C code to be executed _ before any_ test cases are run.
@@ -191,7 +196,63 @@ Few usage examples can be found in `/test/tests/test_unity_parameterized.c` file
191196You should define ` UNITY_SUPPORT_TEST_CASES ` macro for tests success compiling,
192197if you enable current option.
193198
194- You can see list of supported macros list in the next section.
199+ You can see list of supported macros list in the
200+ [ Parameterized tests provided macros] ( #parameterized-tests-provided-macros )
201+ section that follows.
202+
203+ ##### ` :cmdline_args `
204+
205+ When set to ` true ` , the generated test runner can accept a number of
206+ options to modify how the test(s) are run.
207+
208+ Ensure Unity is compiled with ` UNITY_USE_COMMAND_LINE_ARGS ` defined or else
209+ the required functions will not exist.
210+
211+ These are the available options:
212+
213+ | Option | Description |
214+ | --------- | ------------------------------------------------- |
215+ | ` -l ` | List all tests and exit |
216+ | ` -f NAME ` | Filter to run only tests whose name includes NAME |
217+ | ` -n NAME ` | (deprecated) alias of -f |
218+ | ` -h ` | show the Help menu that lists these options |
219+ | ` -q ` | Quiet/decrease verbosity |
220+ | ` -v ` | increase Verbosity |
221+ | ` -x NAME ` | eXclude tests whose name includes NAME |
222+
223+ ##### ` :setup_name `
224+
225+ Override the default test ` setUp ` function name.
226+
227+ ##### ` :teardown_name `
228+
229+ Override the default test ` tearDown ` function name.
230+
231+ ##### ` :test_reset_name `
232+
233+ Override the default test ` resetTest ` function name.
234+
235+ ##### ` :test_verify_name `
236+
237+ Override the default test ` verifyTest ` function name.
238+
239+ ##### ` :main_name `
240+
241+ Override the test's ` main() ` function name (from ` main ` to whatever is specified).
242+ The sentinel value ` :auto ` will use the test's filename with the ` .c ` extension removed prefixed
243+ with ` main_ ` as the "main" function.
244+
245+ To clarify, if ` :main_name == :auto ` and the test filename is "test_my_project.c", then the
246+ generated function name will be ` main_test_my_project(int argc, char** argv) ` .
247+
248+ ##### ` main_export_decl `
249+
250+ Provide any ` cdecl ` for the ` main() ` test function. Is empty by default.
251+
252+ ##### ` :omit_begin_end `
253+
254+ If ` true ` , the ` UnityBegin ` and ` UnityEnd ` function will not be called for
255+ Unity test state setup and cleanup.
195256
196257#### Parameterized tests provided macros
197258
0 commit comments