mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-10-21 15:00:34 +08:00
Add support for randomizing test execution order
This commit reintroduces the option to shuffle the test execution order into the test runner. This has been tested with the temp_sensor example project in Ceedling. Unit tests have also been successfully executed. Signed-off-by: James Raphael Tiovalen <jamestiotio@gmail.com>
This commit is contained in:
@@ -277,6 +277,22 @@ Unity test state setup and cleanup.
|
||||
|
||||
This option can also be specified at the command prompt as `--omit_begin_end`
|
||||
|
||||
##### `:shuffle_tests`
|
||||
|
||||
If `true`, the test execution order will be shuffled. Is `false` by default.
|
||||
|
||||
This option can also be specified at the command prompt as `--shuffle_tests`
|
||||
|
||||
##### `:rng_seed`
|
||||
|
||||
If set to some positive integer value, said value will be used as the seed value passed
|
||||
to the `srand` function. Otherwise, if not set to any value, `time(NULL)` will be used
|
||||
as the seed value.
|
||||
|
||||
Only applicable if `:shuffle_tests` is set to `true`.
|
||||
|
||||
This option can also be specified at the command prompt as `--rng_seed`
|
||||
|
||||
#### Parameterized tests provided macros
|
||||
|
||||
Unity provides support for few param tests generators, that can be combined
|
||||
|
Reference in New Issue
Block a user