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:
James Raphael Tiovalen
2024-01-30 17:45:53 +08:00
parent cdf1d0297e
commit b0bcdb56c1
2 changed files with 106 additions and 6 deletions

View File

@@ -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