You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/UnityHelperScriptsGuide.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,8 @@ Define this option with C code to be executed _before any_ test cases are run.
126
126
Alternatively, if your C compiler supports weak symbols, you can leave this option unset and instead provide a `void suiteSetUp(void)` function in your test suite.
127
127
The linker will look for this symbol and fall back to a Unity-provided stub if it is not found.
128
128
129
+
This option can also be specified at the command prompt as `--suite_setup=""`
130
+
129
131
##### `:suite_teardown`
130
132
131
133
Define this option with C code to be executed _after all_ test cases have finished.
@@ -136,6 +138,8 @@ You can normally just return `num_failures`.
136
138
Alternatively, if your C compiler supports weak symbols, you can leave this option unset and instead provide a `int suiteTearDown(int num_failures)` function in your test suite.
137
139
The linker will look for this symbol and fall back to a Unity-provided stub if it is not found.
138
140
141
+
This option can also be specified at the command prompt as `--suite_teardown=""`
142
+
139
143
##### `:enforce_strict_ordering`
140
144
141
145
This option should be defined if you have the strict order feature enabled in CMock (see CMock documentation).
@@ -146,6 +150,8 @@ If you provide the same YAML to the generator as used in CMock's configuration,
146
150
147
151
This option should be defined if you are mixing C and CPP and want your test runners to automatically include extern "C" support when they are generated.
148
152
153
+
This option can also be specified at the command prompt as `--externc`
154
+
149
155
##### `:mock_prefix` and `:mock_suffix`
150
156
151
157
Unity automatically generates calls to Init, Verify and Destroy for every file included in the main test file that starts with the given mock prefix and ends with the given mock suffix, file extension not included.
@@ -170,8 +176,11 @@ Or as a yaml file:
170
176
171
177
If you are using CMock, it is very likely that you are already passing an array of plugins to CMock.
172
178
You can just use the same array here.
179
+
173
180
This script will just ignore the plugins that don't require additional support.
174
181
182
+
This option can also be specified at the command prompt as `--cexception`
183
+
175
184
##### `:include_extensions`
176
185
177
186
This option specifies the pattern for matching acceptable header file extensions.
@@ -200,6 +209,8 @@ You can see list of supported macros list in the
0 commit comments