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

Merge pull request #714 from jamestiotio/shuffle_tests

Add support for randomizing test execution order
This commit is contained in:
Mark VanderVoord
2025-03-31 10:04:14 -04:00
committed by GitHub
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